summaryrefslogtreecommitdiff
path: root/plugins/SplashScreen
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SplashScreen')
-rw-r--r--plugins/SplashScreen/src/main.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/SplashScreen/src/main.cpp b/plugins/SplashScreen/src/main.cpp
index 89c9c2ec2d..08b15eb9b6 100644
--- a/plugins/SplashScreen/src/main.cpp
+++ b/plugins/SplashScreen/src/main.cpp
@@ -213,10 +213,6 @@ static int ModulesLoaded(WPARAM wParam, LPARAM lParam)
}
}
- // Options initialize hook
- HookEvent(ME_OPT_INITIALISE, OptInit);
- HookEvent(ME_DB_CONTACT_SETTINGCHANGED, PlugDisableHook);
-
// Service to call splash
CreateServiceFunction(MS_SHOWSPLASH, ShowSplashService);
@@ -230,10 +226,11 @@ static int ModulesLoaded(WPARAM wParam, LPARAM lParam)
int CMPlugin::Load()
{
HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded);
+ HookEvent(ME_OPT_INITIALISE, OptInit);
+ HookEvent(ME_DB_CONTACT_SETTINGCHANGED, PlugDisableHook);
SplashMain();
mir_free(szMirDir);
-
return 0;
}