summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-02-28 12:39:01 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-02-28 12:39:01 +0300
commitc971b7e7f0cb5d72dffc208421a187d49c4e6895 (patch)
tree78ec08d79a46bcfcd00a4fff0980612667732d86 /src
parente831ce4dfe7a6cb5f87f7eb862d5bbf21f4b4159 (diff)
fixes #3353 (Jabber: пункт меню "Позвонить" не отображается после перезапуска)
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/clistmod.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mir_app/src/clistmod.cpp b/src/mir_app/src/clistmod.cpp
index 19b9a8a860..df3e6f8641 100644
--- a/src/mir_app/src/clistmod.cpp
+++ b/src/mir_app/src/clistmod.cpp
@@ -158,8 +158,17 @@ static void AddProtoIconIndex(PROTOACCOUNT *pa)
}
}
+static int ContactListModulesLoaded2(WPARAM, LPARAM)
+{
+ InitStaticAccounts();
+ return 0;
+}
+
static int ContactListModulesLoaded(WPARAM, LPARAM)
{
+ // delay accounts initialization after all plugins initialization
+ HookEvent(ME_SYSTEM_MODULESLOADED, ContactListModulesLoaded2);
+
ScheduleMenuUpdate();
RebuildMenuOrder();
@@ -171,7 +180,6 @@ static int ContactListModulesLoaded(WPARAM, LPARAM)
LoadCLUIModule();
InitClistHotKeys();
- InitStaticAccounts();
InitMoveToGroup();
CMenuItem mi(&g_plugin);