From 67e3f0fb7e0ace16b2aae903d7f17beea95fafe0 Mon Sep 17 00:00:00 2001 From: slotwin Date: Thu, 19 Jun 2014 02:10:59 +0000 Subject: Clist_nicer: fix updating state of toggle buttons (internal toptoolbar and skin buttons) when settings were changed by other plugins git-svn-id: http://svn.miranda-ng.org/main/trunk@9539 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_nicer/src/clc.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/Clist_nicer/src/clc.cpp') diff --git a/plugins/Clist_nicer/src/clc.cpp b/plugins/Clist_nicer/src/clc.cpp index a083760a2f..3788b87334 100644 --- a/plugins/Clist_nicer/src/clc.cpp +++ b/plugins/Clist_nicer/src/clc.cpp @@ -171,6 +171,10 @@ static int ClcSettingChanged(WPARAM hContact, LPARAM lParam) ClcSetButtonState(IDC_TBSOUND, cfg::dat.soundsOff ? BST_CHECKED : BST_UNCHECKED); SetButtonStates(pcli->hwndContactList); } + else if (!__strcmp(cws->szModule, "CList") && !__strcmp(cws->szSetting, "UseGroups")) { + ClcSetButtonState(IDC_TBHIDEGROUPS, cfg::getByte(cws->szModule, cws->szSetting, SETTING_USEGROUPS_DEFAULT)); + SetButtonStates(pcli->hwndContactList); + } else if (!__strcmp(cws->szModule, "TopToolBar") && !__strcmp(cws->szSetting, "UseFlatButton")) { SetButtonToSkinned(); } -- cgit v1.2.3