From 5d55c351109d18bb46b97c7e6142f6f321595849 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 12 Aug 2014 20:36:33 +0000 Subject: icons registration moved to Load() git-svn-id: http://svn.miranda-ng.org/main/trunk@10173 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BuddyExpectator/src/BuddyExpectator.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/BuddyExpectator/src') diff --git a/plugins/BuddyExpectator/src/BuddyExpectator.cpp b/plugins/BuddyExpectator/src/BuddyExpectator.cpp index fa0dcb9876..091c912a6b 100644 --- a/plugins/BuddyExpectator/src/BuddyExpectator.cpp +++ b/plugins/BuddyExpectator/src/BuddyExpectator.cpp @@ -614,12 +614,6 @@ int ModulesLoaded(WPARAM, LPARAM) //////////////////////////////////////////////////////////////////////////// - Icon_Register(hInst, "BuddyExpectator", iconList, SIZEOF(iconList)); - - HookEvent(ME_SKIN2_ICONSCHANGED, onIconsChanged); - - onIconsChanged(0,0); - if (options.enableMissYou) { HookEvent(ME_CLIST_PREBUILDCONTACTMENU, onPrebuildContactMenu); @@ -702,6 +696,12 @@ extern "C" int __declspec(dllexport) Load(void) db_set_dw(hContact, MODULE_NAME, "CreationTime", current_time); } + Icon_Register(hInst, "BuddyExpectator", iconList, SIZEOF(iconList)); + + HookEvent(ME_SKIN2_ICONSCHANGED, onIconsChanged); + + onIconsChanged(0, 0); + hExtraIcon = ExtraIcon_Register("buddy_exp", LPGEN("Buddy Expectator"), "enabled_icon"); return 0; -- cgit v1.2.3