summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();