diff options
author | George Hazan <george.hazan@gmail.com> | 2023-09-26 12:20:03 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-09-26 12:20:03 +0300 |
commit | b6669f0ee3361891e9807e5c734bf9121e9cfb06 (patch) | |
tree | 89f4662ee0f9b743126b213354820fd1671a5657 /plugins/SmileyAdd/src | |
parent | 82228dfaa3f7c387ff1f42e1698c4d68fe8e1335 (diff) |
SRMM options update unification
Diffstat (limited to 'plugins/SmileyAdd/src')
-rw-r--r-- | plugins/SmileyAdd/src/dlgboxsubclass.cpp | 10 | ||||
-rw-r--r-- | plugins/SmileyAdd/src/services.cpp | 4 |
2 files changed, 3 insertions, 11 deletions
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<MsgWndData> 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:
|