summaryrefslogtreecommitdiff
path: root/plugins/Sessions
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Sessions')
-rw-r--r--plugins/Sessions/Src/Main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/Sessions/Src/Main.cpp b/plugins/Sessions/Src/Main.cpp
index 14fbd88a4a..85cf801d6a 100644
--- a/plugins/Sessions/Src/Main.cpp
+++ b/plugins/Sessions/Src/Main.cpp
@@ -883,9 +883,6 @@ static int PluginInit(WPARAM wparam,LPARAM lparam)
hkd.pszService = MS_SESSIONS_CLOSESESSION;
Hotkey_Register(&hkd);
- // Icons
- Icon_Register(hinstance, MODNAME, iconList, SIZEOF(iconList));
-
// Main menu
CLISTMENUITEM cl = { sizeof(cl) };
cl.position = 1000000000;
@@ -977,5 +974,9 @@ extern "C" __declspec(dllexport) int Load(void)
HookEvent(ME_SYSTEM_MODULESLOADED, PluginInit);
HookEvent(ME_SYSTEM_OKTOEXIT, OkToExit);
HookEvent(ME_SYSTEM_PRESHUTDOWN, SessionPreShutdown);
+
+ // Icons
+ Icon_Register(hinstance, MODNAME, iconList, SIZEOF(iconList));
+
return 0;
}