diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/menu_clist.cpp | 7 | ||||
-rw-r--r-- | src/mir_app/src/menu_tray.cpp | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/mir_app/src/menu_clist.cpp b/src/mir_app/src/menu_clist.cpp index adb2decf95..466a8e3ff1 100644 --- a/src/mir_app/src/menu_clist.cpp +++ b/src/mir_app/src/menu_clist.cpp @@ -1030,6 +1030,12 @@ static INT_PTR HotkeySetStatus(WPARAM, LPARAM lParam) return 0;
}
+static INT_PTR ShowHide(WPARAM, LPARAM)
+{
+ cli.pfnShowHide();
+ return 0;
+}
+
/////////////////////////////////////////////////////////////////////////////////////////
// PROTOCOL MENU
@@ -1104,6 +1110,7 @@ void InitCustomMenus(void) // initialize hotkeys
CreateServiceFunction(MS_CLIST_HKSTATUS, HotkeySetStatus);
+ CreateServiceFunction(MS_CLIST_SHOWHIDE, ShowHide);
HOTKEYDESC hkd = {};
hkd.szSection.w = L"Status";
diff --git a/src/mir_app/src/menu_tray.cpp b/src/mir_app/src/menu_tray.cpp index c508be12bb..b2ad890e86 100644 --- a/src/mir_app/src/menu_tray.cpp +++ b/src/mir_app/src/menu_tray.cpp @@ -121,7 +121,7 @@ void InitTrayMenus(void) SET_UID(mi, 0x6c202553, 0xb4d5, 0x403c, 0xa6, 0x82, 0x2, 0xd8, 0x2b, 0x42, 0xba, 0x9e);
mi.flags = CMIF_DEFAULT;
mi.position = 100000;
- mi.pszService = "CList/ShowHide";
+ mi.pszService = MS_CLIST_SHOWHIDE;
mi.name.a = LPGEN("&Hide/show");
mi.hIcolibItem = Skin_GetIconHandle(SKINICON_OTHER_SHOWHIDE);
Menu_AddTrayMenuItem(&mi);
|