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/clui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/Clist_nicer/src/clui.cpp') diff --git a/plugins/Clist_nicer/src/clui.cpp b/plugins/Clist_nicer/src/clui.cpp index af7cf779c3..9b8263034c 100644 --- a/plugins/Clist_nicer/src/clui.cpp +++ b/plugins/Clist_nicer/src/clui.cpp @@ -1566,7 +1566,8 @@ buttons_done: int newVal = !(GetWindowLongPtr(pcli->hwndContactTree, GWL_STYLE) & CLS_USEGROUPS); cfg::writeByte("CList", "UseGroups", (BYTE)newVal); SendMessage(pcli->hwndContactTree, CLM_SETUSEGROUPS, newVal, 0); - CheckDlgButton(hwnd, IDC_TBHIDEGROUPS, newVal ? BST_CHECKED : BST_UNCHECKED); + ClcSetButtonState(IDC_TBHIDEGROUPS, newVal); + SetButtonStates(hwnd); } break; case POPUP_HIDEMIRANDA: -- cgit v1.2.3