summaryrefslogtreecommitdiff
path: root/plugins/AutoShutdown/src/settingsdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AutoShutdown/src/settingsdlg.cpp')
-rw-r--r--plugins/AutoShutdown/src/settingsdlg.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/plugins/AutoShutdown/src/settingsdlg.cpp b/plugins/AutoShutdown/src/settingsdlg.cpp
index c512924897..8d22bc2956 100644
--- a/plugins/AutoShutdown/src/settingsdlg.cpp
+++ b/plugins/AutoShutdown/src/settingsdlg.cpp
@@ -450,19 +450,17 @@ void SetShutdownMenuItem(bool fActive)
}
mi.pszService = "AutoShutdown/MenuCommand";
mi.flags = CMIF_TCHAR;
- if (hMainMenuItem != NULL) {
- mi.flags |= CMIM_NAME | CMIM_ICON;
- Menu_ModifyItem(hMainMenuItem, &mi);
- }
- else hMainMenuItem = Menu_AddMainMenuItem(&mi);
+ if (hMainMenuItem != NULL)
+ Menu_ModifyItem(hMainMenuItem, mi.ptszName, mi.icolibItem);
+ else
+ hMainMenuItem = Menu_AddMainMenuItem(&mi);
/* tray menu */
mi.position = 899999;
- if (hTrayMenuItem != NULL) {
- mi.flags |= CMIM_NAME | CMIM_ICON;
- Menu_ModifyItem(hTrayMenuItem, &mi);
- }
- else hTrayMenuItem = Menu_AddTrayMenuItem(&mi);
+ if (hTrayMenuItem != NULL)
+ Menu_ModifyItem(hTrayMenuItem, mi.ptszName, mi.icolibItem);
+ else
+ hTrayMenuItem = Menu_AddTrayMenuItem(&mi);
}
static INT_PTR MenuItemCommand(WPARAM,LPARAM)