summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-03-20 19:07:29 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-03-20 19:07:29 +0300
commit9b81a93de57785051cdb30bd7100a6102dd344be (patch)
tree7e1ca7c1a38b7f5869ad59bb5deae1332343c845 /plugins
parent00f13b022dbf89fd630a8d43ffd602c84caff7e9 (diff)
SRMM: button displays the forecoming state, not the current one
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Scriver/src/msgdialog.cpp2
-rw-r--r--plugins/Scriver/src/msgutils.cpp5
-rw-r--r--plugins/TabSRMM/src/msgdlgother.cpp2
3 files changed, 4 insertions, 5 deletions
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp
index b5ab5506ea..c7e0edcb05 100644
--- a/plugins/Scriver/src/msgdialog.cpp
+++ b/plugins/Scriver/src/msgdialog.cpp
@@ -491,7 +491,7 @@ void CMsgDialog::onClick_ShowList(CCtrlButton *pButton)
return;
m_bNicklistEnabled = !m_bNicklistEnabled;
- pButton->SendMsg(BM_SETIMAGE, IMAGE_ICON, (LPARAM)g_plugin.getIcon(m_bNicklistEnabled ? IDI_NICKLIST2 : IDI_NICKLIST));
+ UpdateFilterButton();
m_pLog->ScrollToBottom();
Resize();
}
diff --git a/plugins/Scriver/src/msgutils.cpp b/plugins/Scriver/src/msgutils.cpp
index 7d659b85bd..4f7223c28d 100644
--- a/plugins/Scriver/src/msgutils.cpp
+++ b/plugins/Scriver/src/msgutils.cpp
@@ -534,7 +534,8 @@ void CMsgDialog::UpdateFilterButton()
{
CSuper::UpdateFilterButton();
- m_btnFilter.SendMsg(BM_SETIMAGE, IMAGE_ICON, (LPARAM)g_plugin.getIcon(m_bFilterEnabled ? IDI_FILTER2 : IDI_FILTER));
+ m_btnFilter.SendMsg(BM_SETIMAGE, IMAGE_ICON, (LPARAM)g_plugin.getIcon(m_bFilterEnabled ? IDI_FILTER : IDI_FILTER2));
+ m_btnNickList.SendMsg(BM_SETIMAGE, IMAGE_ICON, (LPARAM)g_plugin.getIcon(m_bNicklistEnabled ? IDI_NICKLIST2 : IDI_NICKLIST));
}
void CMsgDialog::UpdateNickList()
@@ -558,8 +559,6 @@ void CMsgDialog::UpdateNickList()
void CMsgDialog::UpdateOptions()
{
- m_btnNickList.SendMsg(BM_SETIMAGE, IMAGE_ICON, (LPARAM)g_plugin.getIcon(m_bNicklistEnabled ? IDI_NICKLIST2 : IDI_NICKLIST));
-
GetAvatar();
UpdateFilterButton();
diff --git a/plugins/TabSRMM/src/msgdlgother.cpp b/plugins/TabSRMM/src/msgdlgother.cpp
index b2e293ab74..1634e5712e 100644
--- a/plugins/TabSRMM/src/msgdlgother.cpp
+++ b/plugins/TabSRMM/src/msgdlgother.cpp
@@ -2489,7 +2489,7 @@ void CMsgDialog::UpdateFilterButton()
{
CSuper::UpdateFilterButton();
- m_btnFilter.SendMsg(BUTTONSETOVERLAYICON, (LPARAM)(m_bFilterEnabled ? PluginConfig.g_iconOverlayEnabled : PluginConfig.g_iconOverlayDisabled), 0);
+ m_btnFilter.SendMsg(BUTTONSETOVERLAYICON, (LPARAM)(m_bFilterEnabled ? PluginConfig.g_iconOverlayDisabled : PluginConfig.g_iconOverlayEnabled), 0);
}
void CMsgDialog::UpdateNickList()