From 49f8ccc1880de2037be2cb6c5bcd00bb59d00327 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Sat, 26 Oct 2013 21:41:31 +0000 Subject: on more popup disabling fix (by person) git-svn-id: http://svn.miranda-ng.org/main/trunk@6641 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/StartupSilence/src/main.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'plugins/StartupSilence') diff --git a/plugins/StartupSilence/src/main.cpp b/plugins/StartupSilence/src/main.cpp index 7587fc1bda..3fa028d7b1 100644 --- a/plugins/StartupSilence/src/main.cpp +++ b/plugins/StartupSilence/src/main.cpp @@ -54,6 +54,8 @@ char PopUpTimeComp[MAX_PATH] = ""; char MenuitemComp[MAX_PATH] = ""; char TTBButtonsComp[MAX_PATH] = ""; +int ModulesLoaded(WPARAM wParam, LPARAM lParam); + static LIST ttbButtons(1); PLUGININFOEX pluginInfo={ @@ -83,7 +85,7 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda INT_PTR StartupSilence() { InitSettings(); - hPopups = HookEvent(ME_POPUP_FILTER, DisablePopup); + HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded); mir_forkthread((pThreadFunc)AdvSt, NULL); hSturtupSilenceEnabled = CreateServiceFunction(SS_SERVICE_NAME, SturtupSilenceEnabled); IsMenu(); @@ -110,6 +112,12 @@ extern "C" __declspec(dllexport) int Unload(void) return 0; } +int ModulesLoaded(WPARAM wParam, LPARAM lParam) +{ + hPopups = HookEvent(ME_POPUP_FILTER, DisablePopup); + return 0; +} + int DisablePopup(WPARAM wParam, LPARAM lParam) { if (timer == 2) -- cgit v1.2.3