commit 06e61c2dfcb1b660ff24da0ff2a3f7ac0b0410dd
parent ce4583fb86b1d89d9a8a6bd22eb2350996372433
Author: cfillion <cfillion@users.noreply.github.com>
Date: Tue, 15 Mar 2016 20:19:13 -0400
move "Import repository" under "Cleanup packages" in the menu + accessibility
Diffstat:
3 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/main.cpp b/src/main.cpp
@@ -78,23 +78,23 @@ static void menuHook(const char *name, HMENU handle, int f)
Menu menu = Menu(handle).addMenu(AUTO_STR("ReaPack"));
- menu.addAction(AUTO_STR("Synchronize packages"),
+ menu.addAction(AUTO_STR("&Synchronize packages"),
NamedCommandLookup("_REAPACK_SYNC"));
- menu.addAction(AUTO_STR("Import a repository..."),
- NamedCommandLookup("_REAPACK_IMPORT"));
-
- menu.addAction(AUTO_STR("Clean up packages..."),
+ menu.addAction(AUTO_STR("&Clean up packages..."),
NamedCommandLookup("_REAPACK_CLEANUP"));
- menu.addAction(AUTO_STR("Manage repositories..."),
+ menu.addAction(AUTO_STR("&Import a repository..."),
+ NamedCommandLookup("_REAPACK_IMPORT"));
+
+ menu.addAction(AUTO_STR("&Manage repositories..."),
NamedCommandLookup("_REAPACK_MANAGE"));
menu.addSeparator();
- auto_char aboutLabel[255] = {};
+ auto_char aboutLabel[32] = {};
auto_snprintf(aboutLabel, sizeof(aboutLabel),
- AUTO_STR("About ReaPack v%s"), make_autostring(ReaPack::VERSION).c_str());
+ AUTO_STR("&About ReaPack v%s"), make_autostring(ReaPack::VERSION).c_str());
menu.addAction(aboutLabel, NamedCommandLookup("_REAPACK_ABOUT"));
}
@@ -159,12 +159,12 @@ extern "C" REAPER_PLUGIN_DLL_EXPORT int REAPER_PLUGIN_ENTRYPOINT(
reapack->setupAction("REAPACK_SYNC", "ReaPack: Synchronize packages",
&reapack->syncAction, bind(&ReaPack::synchronizeAll, reapack));
- reapack->setupAction("REAPACK_IMPORT", "ReaPack: Import a repository...",
- &reapack->importAction, bind(&ReaPack::importRemote, reapack));
-
reapack->setupAction("REAPACK_CLEANUP", "ReaPack: Clean up packages...",
&reapack->cleanupAction, bind(&ReaPack::cleanupPackages, reapack));
+ reapack->setupAction("REAPACK_IMPORT", "ReaPack: Import a repository...",
+ &reapack->importAction, bind(&ReaPack::importRemote, reapack));
+
reapack->setupAction("REAPACK_MANAGE", "ReaPack: Manage repositories...",
&reapack->configAction, bind(&ReaPack::manageRemotes, reapack));
diff --git a/src/reapack.cpp b/src/reapack.cpp
@@ -62,7 +62,7 @@ static void CleanupTempFiles()
#endif
ReaPack::ReaPack(REAPER_PLUGIN_HINSTANCE instance)
- : syncAction(), importAction(), cleanupAction(), configAction(),
+ : syncAction(), cleanupAction(), importAction(), configAction(),
m_transaction(nullptr), m_progress(nullptr), m_manager(nullptr),
m_import(nullptr), m_cleanup(nullptr), m_instance(instance)
{
diff --git a/src/reapack.hpp b/src/reapack.hpp
@@ -50,8 +50,8 @@ public:
static const std::string BUILDTIME;
gaccel_register_t syncAction;
- gaccel_register_t importAction;
gaccel_register_t cleanupAction;
+ gaccel_register_t importAction;
gaccel_register_t configAction;
ReaPack(REAPER_PLUGIN_HINSTANCE);