diff options
author | George Hazan <ghazan@miranda.im> | 2017-08-08 12:26:17 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-08-08 12:26:17 +0300 |
commit | 40a156173e722aaf0c9d454ac573f0a26338e065 (patch) | |
tree | c452b0d9901be98f074a11f4843ce16b4faf0f23 /plugins/QuickMessages/src/main.cpp | |
parent | 54d93d2c1ae60d2205476cc08ad356fc7bbd13e0 (diff) |
ME_MSG_TOOLBARLOADED is hooked everywhere as a temporary event
Diffstat (limited to 'plugins/QuickMessages/src/main.cpp')
-rw-r--r-- | plugins/QuickMessages/src/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/QuickMessages/src/main.cpp b/plugins/QuickMessages/src/main.cpp index 3e2b651217..c889776178 100644 --- a/plugins/QuickMessages/src/main.cpp +++ b/plugins/QuickMessages/src/main.cpp @@ -256,9 +256,10 @@ static int PluginInit(WPARAM, LPARAM) g_bStartup = 1;
HookEvent(ME_OPT_INITIALISE, OptionsInit);
HookEvent(ME_MSG_BUTTONPRESSED, CustomButtonPressed);
- HookEvent(ME_MSG_TOOLBARLOADED, RegisterCustomButton);
HookEvent(ME_MSG_WINDOWPOPUP, InputMenuPopup);
+ HookTemporaryEvent(ME_MSG_TOOLBARLOADED, RegisterCustomButton);
+
g_bRClickAuto = db_get_b(NULL, PLGNAME, "RClickAuto", 0);
g_bLClickAuto = db_get_b(NULL, PLGNAME, "LClickAuto", 0);
g_iButtonsCount = db_get_b(NULL, PLGNAME, "ButtonsCount", 0);
|