diff options
author | George Hazan <ghazan@miranda.im> | 2022-06-13 15:09:41 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-06-13 15:09:41 +0300 |
commit | 346ae348ae7ee5a594c9fcd17114ae949c1ce201 (patch) | |
tree | 1e42c52d59515646d603a9593ce23d094a5fde20 /plugins/Popup/src/main.cpp | |
parent | 7524e8b875b924bb3cee484e90f6cc6bc01515a4 (diff) |
Popup+: fix for a madness with default popup class values
Diffstat (limited to 'plugins/Popup/src/main.cpp')
-rw-r--r-- | plugins/Popup/src/main.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
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;
}
|