summaryrefslogtreecommitdiff
path: root/plugins/Clist_nicer/SRC/clui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Clist_nicer/SRC/clui.cpp')
-rw-r--r--plugins/Clist_nicer/SRC/clui.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/plugins/Clist_nicer/SRC/clui.cpp b/plugins/Clist_nicer/SRC/clui.cpp
index a000114e6c..97d0625400 100644
--- a/plugins/Clist_nicer/SRC/clui.cpp
+++ b/plugins/Clist_nicer/SRC/clui.cpp
@@ -2082,11 +2082,6 @@ void LoadCLUIModule(void)
WNDCLASS wndclass;
HookEvent(ME_SYSTEM_MODULESLOADED, CluiModulesLoaded);
- HookEvent(ME_MC_DEFAULTTCHANGED, MetaChanged);
- HookEvent(ME_MC_SUBCONTACTSCHANGED, MetaChanged);
-
- InitGroupMenus();
- LoadExtBkSettingsFromDB();
wndclass.style = 0;
wndclass.lpfnWndProc = EventAreaWndProc;
@@ -2109,13 +2104,22 @@ void LoadCLUIModule(void)
LoadExtraIconModule();
SFL_RegisterWindowClass();
- PreCreateCLC(pcli->hwndContactList);
LoadCLUIFramesModule();
CreateServiceFunction("CLN/About", CLN_ShowAbout);
CreateServiceFunction(MS_CLUI_SHOWMAINMENU, CLN_ShowMainMenu);
CreateServiceFunction(MS_CLUI_SHOWSTATUSMENU, CLN_ShowStatusMenu);
}
+void OnCreateClc()
+{
+ HookEvent(ME_MC_DEFAULTTCHANGED, MetaChanged);
+ HookEvent(ME_MC_SUBCONTACTSCHANGED, MetaChanged);
+
+ InitGroupMenus();
+ LoadExtBkSettingsFromDB();
+ PreCreateCLC(pcli->hwndContactList);
+}
+
static struct {
UINT id;
char *name;