summaryrefslogtreecommitdiff
path: root/plugins/Db_autobackups/src
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-08-23 13:05:02 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-08-23 13:05:02 +0000
commit994cd2af5ceae7097665713841b8b4a0930be28b (patch)
tree135c79291ed2bb5fbfbba66313065ca593ca593b /plugins/Db_autobackups/src
parent9049cdd99fb7206120a98d4393e64b94fb35bb89 (diff)
db_autobackups: fixed menu item
git-svn-id: http://svn.miranda-ng.org/main/trunk@15019 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db_autobackups/src')
-rw-r--r--plugins/Db_autobackups/src/main.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/plugins/Db_autobackups/src/main.cpp b/plugins/Db_autobackups/src/main.cpp
index 446cd371ea..4f143fedb9 100644
--- a/plugins/Db_autobackups/src/main.cpp
+++ b/plugins/Db_autobackups/src/main.cpp
@@ -63,6 +63,21 @@ static int FoldersGetBackupPath(WPARAM, LPARAM)
static int ModulesLoad(WPARAM, LPARAM)
{
+ CMenuItem mi;
+ mi.root = Menu_CreateRoot(MO_MAIN, LPGENT("Database"), 500100000);
+
+ mi.name.a = LPGEN("Backup profile");
+ mi.pszService = MS_AB_BACKUP;
+ mi.hIcolibItem = iconList[0].hIcolib;
+ mi.position = 500100000;
+ Menu_AddMainMenuItem(&mi);
+
+ mi.name.a = LPGEN("Save profile as...");
+ mi.pszService = MS_AB_SAVEAS;
+ mi.hIcolibItem = iconList[1].hIcolib;
+ mi.position = 500100001;
+ Menu_AddMainMenuItem(&mi);
+
profilePath = Utils_ReplaceVarsT(_T("%miranda_userdata%"));
if (hFolder = FoldersRegisterCustomPathT(LPGEN("Database backups"), LPGEN("Backup folder"), DIR SUB_DIR)) {
@@ -103,21 +118,6 @@ extern "C" __declspec(dllexport) int Load(void)
CreateServiceFunction(MS_AB_BACKUP, ABService);
CreateServiceFunction(MS_AB_SAVEAS, DBSaveAs);
- CMenuItem mi;
- mi.root = Menu_CreateRoot(MO_MAIN, LPGENT("Database"), 500100000);
-
- mi.name.a = LPGEN("Backup profile");
- mi.pszService = MS_AB_BACKUP;
- mi.hIcolibItem = iconList[0].hIcolib;
- mi.position = 500100000;
- Menu_AddMainMenuItem(&mi);
-
- mi.name.a = LPGEN("Save profile as...");
- mi.pszService = MS_AB_SAVEAS;
- mi.hIcolibItem = iconList[1].hIcolib;
- mi.position = 500100001;
- Menu_AddMainMenuItem(&mi);
-
HookEvent(ME_OPT_INITIALISE, OptionsInit);
LoadOptions();