From 40a156173e722aaf0c9d454ac573f0a26338e065 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 8 Aug 2017 12:26:17 +0300 Subject: ME_MSG_TOOLBARLOADED is hooked everywhere as a temporary event --- plugins/QuickMessages/src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/QuickMessages/src') 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); -- cgit v1.2.3