From ae983ffa444902e6354e68317c97fdcbc781afe6 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Thu, 22 Aug 2013 21:58:50 +0000 Subject: AutoShutdown: - fixed TopToolbar Button (fixes #439) - redesigned options dialog git-svn-id: http://svn.miranda-ng.org/main/trunk@5789 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AutoShutdown/src/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins/AutoShutdown/src/main.cpp') 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; } -- cgit v1.2.3