summaryrefslogtreecommitdiff
path: root/plugins/MobileState/src/main.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-08-12 18:42:49 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-08-12 18:42:49 +0000
commit74e9b42783af6a0a9d51df6271bca169e3dcc81d (patch)
tree636b9ea671646559fd835766d482fd99b96bbd19 /plugins/MobileState/src/main.cpp
parent4330c62d2fa5b2752036b43018044c7c01b10695 (diff)
extraicons registration moved to Load()
git-svn-id: http://svn.miranda-ng.org/main/trunk@10168 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MobileState/src/main.cpp')
-rw-r--r--plugins/MobileState/src/main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/MobileState/src/main.cpp b/plugins/MobileState/src/main.cpp
index afc61158f9..467359d2ca 100644
--- a/plugins/MobileState/src/main.cpp
+++ b/plugins/MobileState/src/main.cpp
@@ -98,9 +98,6 @@ int onModulesLoaded(WPARAM wParam,LPARAM lParam)
// IcoLib support
Icon_Register(g_hInst, "Mobile State", &icon, 1);
- // Extra icons
- hExtraIcon = ExtraIcon_Register("mobilestate", LPGEN("Mobile State"), "mobile_icon");
-
// Set initial value for all contacts
for (MCONTACT hContact = db_find_first(); hContact; hContact = db_find_next(hContact))
ExtraIconsApply(hContact, 1);
@@ -115,6 +112,10 @@ extern "C" int __declspec(dllexport) Load(void)
HookEvent(ME_SYSTEM_MODULESLOADED, onModulesLoaded);
HookEvent(ME_DB_CONTACT_SETTINGCHANGED, onContactSettingChanged);
HookEvent(ME_CLIST_EXTRA_IMAGE_APPLY, ExtraIconsApply);
+
+ // Extra icons
+ hExtraIcon = ExtraIcon_Register("mobilestate", LPGEN("Mobile State"), "mobile_icon");
+
return 0;
}