From 6ba39da289306e1a1db3ee122add5f2dbc4aaee4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 19 Jan 2021 22:14:44 +0300 Subject: fixes #2693 (import in the service mode breaks the groups' order) --- src/mir_app/src/miranda.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mir_app/src/miranda.cpp b/src/mir_app/src/miranda.cpp index 8bd2e4ee28..38909e4202 100644 --- a/src/mir_app/src/miranda.cpp +++ b/src/mir_app/src/miranda.cpp @@ -352,8 +352,11 @@ int WINAPI mir_main(LPTSTR cmdLine) } else { InitPathVar(); - NotifyEventHooks(hModulesLoadedEvent, 0, 0); - g_bModulesLoadedFired = true; + + if (plugin_service == nullptr) { + NotifyEventHooks(hModulesLoadedEvent, 0, 0); + g_bModulesLoadedFired = true; + } // ensure that the kernel hooks the SystemShutdownProc() after all plugins HookEvent(ME_SYSTEM_SHUTDOWN, SystemShutdownProc); -- cgit v1.2.3