From 346ae348ae7ee5a594c9fcd17114ae949c1ce201 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 13 Jun 2022 15:09:41 +0300 Subject: Popup+: fix for a madness with default popup class values --- plugins/Popup/src/main.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'plugins/Popup/src/main.cpp') diff --git a/plugins/Popup/src/main.cpp b/plugins/Popup/src/main.cpp index 879018c8a1..affb110364 100644 --- a/plugins/Popup/src/main.cpp +++ b/plugins/Popup/src/main.cpp @@ -233,10 +233,6 @@ static int ModulesLoaded(WPARAM, LPARAM) if (ServiceExists("PluginSweeper/Add")) CallService("PluginSweeper/Add", (WPARAM)Translate(MODULENAME), (LPARAM)MODULENAME); - // load fonts / create hook - InitFonts(); - HookEvent(ME_FONT_RELOAD, FontsChanged); - // load actions and notifications LoadActions(); LoadNotifications(); @@ -377,12 +373,17 @@ int CMPlugin::Load() CreateServiceFunction("Popup/LoadSkin", Popup_LoadSkin); + // load fonts / create hook + InitFonts(); + HookEvent(ME_FONT_RELOAD, FontsChanged); + Miranda_WaitOnHandle(ReloadFonts); + // load icons / create hook InitIcons(); HookEvent(ME_SKIN_ICONSCHANGED, IconsChanged); + // add menu items InitMenuItems(); - return 0; } -- cgit v1.2.3