diff options
Diffstat (limited to 'plugins/AutoShutdown/src/main.cpp')
-rw-r--r-- | plugins/AutoShutdown/src/main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/AutoShutdown/src/main.cpp b/plugins/AutoShutdown/src/main.cpp index da5450c630..636fc3e0fd 100644 --- a/plugins/AutoShutdown/src/main.cpp +++ b/plugins/AutoShutdown/src/main.cpp @@ -50,10 +50,15 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, VOID *pReserved) return TRUE;
}
-static int ShutdownModulesLoaded(WPARAM wParam,LPARAM lParam)
+static int ShutdownModulesLoaded(WPARAM,LPARAM)
{
if ( ServiceExists("DBEditorpp/RegisterSingleModule"))
CallService("DBEditorpp/RegisterSingleModule",(WPARAM)"AutoShutdown",0);
+
+ /* Toolbar Item */
+ HookEvent(ME_TTB_MODULELOADED,ToolbarLoaded); /* no service to check for */
+
+ WatcherModulesLoaded();
return 0;
}
|