From 7bb974f094fb6ceb88703941566981a803873f94 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 4 Feb 2024 21:13:20 +0300 Subject: SmileyAdd: no need to reload all SRMM options when a smiley pack is changed --- plugins/SmileyAdd/src/dlgboxsubclass.cpp | 6 ------ plugins/SmileyAdd/src/main.cpp | 1 - plugins/SmileyAdd/src/stdafx.h | 1 - 3 files changed, 8 deletions(-) (limited to 'plugins/SmileyAdd/src') diff --git a/plugins/SmileyAdd/src/dlgboxsubclass.cpp b/plugins/SmileyAdd/src/dlgboxsubclass.cpp index 4f0618b49b..3d2194fa4b 100644 --- a/plugins/SmileyAdd/src/dlgboxsubclass.cpp +++ b/plugins/SmileyAdd/src/dlgboxsubclass.cpp @@ -54,12 +54,6 @@ struct MsgWndData : public MZeroedObject static OBJLIST g_MsgWndList(10, HandleKeySortT); -int UpdateSrmmDlg(WPARAM, LPARAM) -{ - Srmm_ApplyOptions(); - return 0; -} - // find the dialog info in the stored list static MsgWndData* IsMsgWnd(HWND hwnd) { diff --git a/plugins/SmileyAdd/src/main.cpp b/plugins/SmileyAdd/src/main.cpp index 4525fb6e7c..9d20fb6990 100644 --- a/plugins/SmileyAdd/src/main.cpp +++ b/plugins/SmileyAdd/src/main.cpp @@ -168,7 +168,6 @@ int CMPlugin::Load() HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded); HookEvent(ME_SYSTEM_SHUTDOWN, MirandaShutdown); HookEvent(ME_OPT_INITIALISE, SmileysOptionsInitialize); - HookEvent(ME_SMILEYADD_OPTIONSCHANGED, UpdateSrmmDlg); HookEvent(ME_PROTO_ACCLISTCHANGED, AccountListChanged); HookEvent(ME_DB_CONTACT_SETTINGCHANGED, DbSettingChanged); HookEvent(ME_COLOUR_RELOAD, ReloadColors); diff --git a/plugins/SmileyAdd/src/stdafx.h b/plugins/SmileyAdd/src/stdafx.h index 5c2942f5ec..d63876d2df 100644 --- a/plugins/SmileyAdd/src/stdafx.h +++ b/plugins/SmileyAdd/src/stdafx.h @@ -113,7 +113,6 @@ struct CMPlugin : public PLUGIN void InstallDialogBoxHook(void); void RemoveDialogBoxHook(void); -int UpdateSrmmDlg(WPARAM, LPARAM); int SmileyButtonCreate(WPARAM, LPARAM); int SmileyButtonPressed(WPARAM, LPARAM); -- cgit v1.2.3