From 9f478bb53be99c6ad5cf69c1a61cc14900cf72b8 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 13 Aug 2014 18:05:18 +0000 Subject: icons registration moved to Load() git-svn-id: http://svn.miranda-ng.org/main/trunk@10180 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Sessions/Src/Main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins/Sessions/Src') 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; } -- cgit v1.2.3