summaryrefslogtreecommitdiff
path: root/plugins/Scriver
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/Scriver
parent00f13b022dbf89fd630a8d43ffd602c84caff7e9 (diff)
SRMM: button displays the forecoming state, not the current one
Diffstat (limited to 'plugins/Scriver')
-rw-r--r--plugins/Scriver/src/msgdialog.cpp2
-rw-r--r--plugins/Scriver/src/msgutils.cpp5
2 files changed, 3 insertions, 4 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();