From 994cd2af5ceae7097665713841b8b4a0930be28b Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sun, 23 Aug 2015 13:05:02 +0000 Subject: db_autobackups: fixed menu item git-svn-id: http://svn.miranda-ng.org/main/trunk@15019 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db_autobackups/src/main.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'plugins/Db_autobackups/src') 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(); -- cgit v1.2.3