From ebdb188abf6ca1ee5e047c70b9e2be0d47ce67f1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 1 Nov 2012 15:44:51 +0000 Subject: unneeded hook removed git-svn-id: http://svn.miranda-ng.org/main/trunk@2137 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/extraicons/extraicons.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/modules/extraicons/extraicons.cpp') diff --git a/src/modules/extraicons/extraicons.cpp b/src/modules/extraicons/extraicons.cpp index ae571991e4..a2d7c3b34a 100644 --- a/src/modules/extraicons/extraicons.cpp +++ b/src/modules/extraicons/extraicons.cpp @@ -29,7 +29,6 @@ #include "IcolibExtraIcon.h" #include "extraicons.h" -#include "options.h" #include "usedIcons.h" // Prototypes /////////////////////////////////////////////////////////////////////////// @@ -50,6 +49,7 @@ int IconsChanged(WPARAM wParam, LPARAM lParam); int ClistExtraListRebuild(WPARAM wParam, LPARAM lParam); int ClistExtraImageApply(WPARAM wParam, LPARAM lParam); int ClistExtraClick(WPARAM wParam, LPARAM lParam); +int InitOptionsCallback(WPARAM wParam, LPARAM lParam); INT_PTR ExtraIcon_Register(WPARAM wParam, LPARAM lParam); INT_PTR ExtraIcon_SetIcon(WPARAM wParam, LPARAM lParam); @@ -125,8 +125,7 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) CallService("DBEditorpp/RegisterSingleModule", (WPARAM) MODULE_NAME "Groups", 0); HookEvent(ME_SKIN2_ICONSCHANGED, &IconsChanged); - - InitOptions(); + HookEvent(ME_OPT_INITIALISE, InitOptionsCallback); return 0; } @@ -138,7 +137,6 @@ int IconsChanged(WPARAM wParam, LPARAM lParam) int PreShutdown(WPARAM wParam, LPARAM lParam) { DefaultExtraIcons_Unload(); - DeInitOptions(); return 0; } -- cgit v1.2.3