From 488214ac8af0c4aeb1a5c1d8fd48368daaf4c4c7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 12 Nov 2018 20:12:53 +0300 Subject: end of ME_OPT_INITIALISE related zoo in another plugins --- plugins/WebView/src/main.cpp | 1 + plugins/WebView/src/webview.cpp | 4 +--- plugins/WebView/src/webview.h | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/WebView') diff --git a/plugins/WebView/src/main.cpp b/plugins/WebView/src/main.cpp index 4bbbe80c61..5c9c387e4d 100644 --- a/plugins/WebView/src/main.cpp +++ b/plugins/WebView/src/main.cpp @@ -244,6 +244,7 @@ int CMPlugin::Load() HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded); HookEvent(ME_DB_CONTACT_SETTINGCHANGED, DBSettingChanged); HookEvent(ME_DB_CONTACT_DELETED, SiteDeleted); + HookEvent(ME_OPT_INITIALISE, OptInitialise); db_set_b(NULL, MODULENAME, HAS_CRASHED_KEY, 1); return 0; diff --git a/plugins/WebView/src/webview.cpp b/plugins/WebView/src/webview.cpp index 2be23ed09a..f70712bc45 100644 --- a/plugins/WebView/src/webview.cpp +++ b/plugins/WebView/src/webview.cpp @@ -288,7 +288,7 @@ void CALLBACK Countdownfunc(HWND, UINT, UINT_PTR, DWORD) /*****************************************************************************/ -static int OptInitialise(WPARAM wParam, LPARAM) +int OptInitialise(WPARAM wParam, LPARAM) { OPTIONSDIALOGPAGE odp = {}; odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT); @@ -330,8 +330,6 @@ void FontSettings(void) /*****************************************************************************/ int ModulesLoaded(WPARAM, LPARAM) { - HookEvent(ME_OPT_INITIALISE, OptInitialise); - hHookDisplayDataAlert = CreateHookableEvent(ME_DISPLAYDATA_ALERT); HookEvent(ME_DISPLAYDATA_ALERT, DataWndAlertCommand); diff --git a/plugins/WebView/src/webview.h b/plugins/WebView/src/webview.h index ad69459257..561557e7e2 100644 --- a/plugins/WebView/src/webview.h +++ b/plugins/WebView/src/webview.h @@ -213,6 +213,7 @@ int ProcessAlerts(MCONTACT hContact, char *truncated, char *tstr, char *contact INT_PTR CALLBACK DlgPopUpOpts(HWND hdlg, UINT msg, WPARAM wParam, LPARAM lParam); INT_PTR CALLBACK DlgProcFind(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam); int DataDialogResize(HWND hwndDlg, LPARAM lParam, UTILRESIZECONTROL * urc); +int OptInitialise(WPARAM, LPARAM); void Filter(char *truncated); void TxtclrLoop(); -- cgit v1.2.3