From ff2a944c8d0d09834cd29f1d56fad5540db3ef02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 10 Dec 2013 19:05:17 +0000 Subject: NewEventNotify: fixed duplicated popups menu git-svn-id: http://svn.miranda-ng.org/main/trunk@7120 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewEventNotify/src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/NewEventNotify') diff --git a/plugins/NewEventNotify/src/main.cpp b/plugins/NewEventNotify/src/main.cpp index 8323794ccf..600335ac23 100644 --- a/plugins/NewEventNotify/src/main.cpp +++ b/plugins/NewEventNotify/src/main.cpp @@ -124,7 +124,10 @@ int HookedInit(WPARAM, LPARAM) hHookedNewEvent = HookEvent(ME_DB_EVENT_ADDED, HookedNewEvent); // Plugin sweeper support if (ServiceExists("PluginSweeper/Add")) - CallService("PluginSweeper/Add", (WPARAM)MODULE, (LPARAM)MODULE); + CallService("PluginSweeper/Add", (WPARAM)MODULE, (LPARAM)MODULE); + + if (pluginOptions.bMenuitem) + MenuitemInit(!pluginOptions.bDisable); g_IsSrmmWindowAPI = ServiceExists(MS_MSG_GETWINDOWDATA) != 0; return 0; @@ -155,9 +158,6 @@ extern "C" __declspec(dllexport) int Load(void) OptionsInit(&pluginOptions); pluginOptions.hInst = hInst; - if (pluginOptions.bMenuitem) - MenuitemInit(!pluginOptions.bDisable); - return 0; } -- cgit v1.2.3