diff options
author | George Hazan <george.hazan@gmail.com> | 2015-12-07 16:15:24 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-12-07 16:15:24 +0000 |
commit | f3151f33e282214080abacf04521296acec5e9de (patch) | |
tree | e6983507bbc83c6d788cf5bcf9d5e2da45f1daa4 /plugins/Alarms | |
parent | fcb800cc6b9c2bf47a65750fa99065cb2a935b87 (diff) |
fix to apply the unique identifiers to all menu roots
git-svn-id: http://svn.miranda-ng.org/main/trunk@15826 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Alarms')
-rw-r--r-- | plugins/Alarms/src/frame.cpp | 4 | ||||
-rw-r--r-- | plugins/Alarms/src/options.cpp | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/plugins/Alarms/src/frame.cpp b/plugins/Alarms/src/frame.cpp index 9282a8642c..0cf9561998 100644 --- a/plugins/Alarms/src/frame.cpp +++ b/plugins/Alarms/src/frame.cpp @@ -542,11 +542,13 @@ int CreateFrame() CreateServiceFunction(MODULE "/ShowHideReminders", ShowHideMenuFunc);
CMenuItem mi;
+ mi.root = Menu_CreateRoot(MO_MAIN, LPGENT("Alarms"), 0);
+ Menu_ConfigureItem(mi.root, MCI_OPT_UID, "8A3C1906-4809-4EE8-A32A-858003A2AAA7");
+
SET_UID(mi, 0x27556ea9, 0xfa19, 0x4c2e, 0xb0, 0xc9, 0x48, 0x2, 0x5c, 0x17, 0xba, 0x5);
mi.hIcolibItem = hIconMenuShowHide;
mi.name.a = LPGEN("Show reminders");
mi.pszService = MODULE "/ShowHideReminders";
- mi.root = Menu_CreateRoot(MO_MAIN, LPGENT("Alarms"), 0);
mi.position = 500010000;
hMenuShowReminders = Menu_AddMainMenuItem(&mi);
/////////////////////
diff --git a/plugins/Alarms/src/options.cpp b/plugins/Alarms/src/options.cpp index fcaedc750e..847f377ec5 100644 --- a/plugins/Alarms/src/options.cpp +++ b/plugins/Alarms/src/options.cpp @@ -575,13 +575,16 @@ void AddMenuItem() if (hMainMenuItem) return;
CMenuItem mi;
+ if (!ServiceExists(MS_CLIST_FRAMES_ADDFRAME)) {
+ mi.root = Menu_CreateRoot(MO_MAIN, LPGENT("Alarms"), mi.position);
+ Menu_ConfigureItem(mi.root, MCI_OPT_UID, "24F03563-01BE-4118-8297-E94375A783E7");
+ }
+
SET_UID(mi, 0xd50b94e4, 0x8edd, 0x4083, 0x91, 0x93, 0x7c, 0x6a, 0xb8, 0x1, 0x41, 0xb9);
mi.hIcolibItem = IcoLib_GetIconHandle("alarms_menu_set");
mi.name.a = "Set alarm";
mi.pszService = MODULE "/NewAlarm";
mi.position = 500010000;
- if (!ServiceExists(MS_CLIST_FRAMES_ADDFRAME))
- mi.root = Menu_CreateRoot(MO_MAIN, LPGENT("Alarms"), mi.position);
hMainMenuItem = Menu_AddMainMenuItem(&mi);
}
|