summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2013-10-26 21:41:31 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2013-10-26 21:41:31 +0000
commit49f8ccc1880de2037be2cb6c5bcd00bb59d00327 (patch)
tree72335bc7714d9820da43d77b8ff46bee34e69492
parent627583b9c2b73eee5d692169a2e0d0c59535c525 (diff)
on more popup disabling fix (by person)
git-svn-id: http://svn.miranda-ng.org/main/trunk@6641 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/StartupSilence/src/main.cpp10
1 files changed, 9 insertions, 1 deletions
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<void> 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)