From 691f43b900a28f1cf651b026be2d0889901bf9c0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 9 Jan 2020 20:05:40 +0300 Subject: fixes #2156: error in Popup+ options logic) --- plugins/Popup/src/opt_gen.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/Popup/src') diff --git a/plugins/Popup/src/opt_gen.cpp b/plugins/Popup/src/opt_gen.cpp index c5e3a31340..6e90a9f4e7 100644 --- a/plugins/Popup/src/opt_gen.cpp +++ b/plugins/Popup/src/opt_gen.cpp @@ -341,8 +341,9 @@ INT_PTR CALLBACK DlgProcPopupGeneral(HWND hwnd, UINT msg, WPARAM wParam, LPARAM int chk = IsDlgButtonChecked(hwnd, IDC_POPUPENABLED); if (bEnabled && chk || !bEnabled && !chk) svcEnableDisableMenuCommand(0, 0); - EnableWindow(GetDlgItem(hwnd, IDC_STATUSES), bEnabled); - EnableWindow(GetDlgItem(hwnd, IDC_DISABLEINFS), bEnabled); + EnableWindow(GetDlgItem(hwnd, IDC_STATUSES), !bEnabled); + EnableWindow(GetDlgItem(hwnd, IDC_DISABLEINFS), !bEnabled); + SendMessage(GetParent(hwnd), PSM_CHANGED, 0, 0); } break; -- cgit v1.2.3