From b6669f0ee3361891e9807e5c734bf9121e9cfb06 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 26 Sep 2023 12:20:03 +0300 Subject: SRMM options update unification --- plugins/SmileyAdd/src/dlgboxsubclass.cpp | 10 +--------- plugins/SmileyAdd/src/services.cpp | 4 ++-- 2 files changed, 3 insertions(+), 11 deletions(-) (limited to 'plugins/SmileyAdd/src') diff --git a/plugins/SmileyAdd/src/dlgboxsubclass.cpp b/plugins/SmileyAdd/src/dlgboxsubclass.cpp index 9a5792651d..0dd3cafd0d 100644 --- a/plugins/SmileyAdd/src/dlgboxsubclass.cpp +++ b/plugins/SmileyAdd/src/dlgboxsubclass.cpp @@ -56,15 +56,7 @@ static OBJLIST g_MsgWndList(10, HandleKeySortT); int UpdateSrmmDlg(WPARAM wParam, LPARAM) { - mir_cslock lck(csWndList); - - for (auto &it : g_MsgWndList) { - if (wParam == 0 || it->pDlg->m_hContact == wParam) { - SendMessage(it->pDlg->GetHwnd(), WM_SETREDRAW, FALSE, 0); - it->pDlg->UpdateOptions(); - SendMessage(it->pDlg->GetHwnd(), WM_SETREDRAW, TRUE, 0); - } - } + Srmm_ApplyOptions(); return 0; } diff --git a/plugins/SmileyAdd/src/services.cpp b/plugins/SmileyAdd/src/services.cpp index fbbc9398a7..b2dbc14ea4 100644 --- a/plugins/SmileyAdd/src/services.cpp +++ b/plugins/SmileyAdd/src/services.cpp @@ -265,12 +265,12 @@ INT_PTR LoadContactSmileys(WPARAM, LPARAM lParam) switch (cont->type) { case 0: g_SmileyPackCStore.AddSmileyPack(cont->pszModule, cont->path); - NotifyEventHooks(g_hevOptionsChanged, (WPARAM)cont->pszModule, 0); + NotifyEventHooks(g_hevOptionsChanged, 0, (WPARAM)cont->pszModule); break; case 1: g_SmileyPackCStore.AddSmiley(cont->pszModule, cont->path); - NotifyEventHooks(g_hevOptionsChanged, (WPARAM)cont->pszModule, 0); + NotifyEventHooks(g_hevOptionsChanged, 0, (WPARAM)cont->pszModule); break; case 2: -- cgit v1.2.3