diff options
author | George Hazan <ghazan@miranda.im> | 2021-05-13 22:50:13 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-05-13 22:50:13 +0300 |
commit | cbce7498c1630060ae345e7b9058e180155d76d1 (patch) | |
tree | f0de213521d8aef9425448a396248c68ee8479d0 /plugins/QuickSearch/src | |
parent | 787f04649748e06eb89a189782cf4bed405036ca (diff) |
fix for colorization (#2881, p.2)
Diffstat (limited to 'plugins/QuickSearch/src')
-rw-r--r-- | plugins/QuickSearch/src/main.cpp | 2 | ||||
-rw-r--r-- | plugins/QuickSearch/src/window.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/QuickSearch/src/main.cpp b/plugins/QuickSearch/src/main.cpp index 4d20890483..ac398942a0 100644 --- a/plugins/QuickSearch/src/main.cpp +++ b/plugins/QuickSearch/src/main.cpp @@ -143,7 +143,7 @@ static sttColors[color_max] = { static int OnColorReload(WPARAM, LPARAM) { for (int i = 0; i < color_max; i++) - g_plugin.m_colors[i] = Colour_Get(MODULENAME, sttColors[i].szSetting); + g_plugin.m_colors[i] = Colour_Get(MODULENAME, sttColors[i].szDescr); return 0; } diff --git a/plugins/QuickSearch/src/window.cpp b/plugins/QuickSearch/src/window.cpp index 5ee73703aa..670a72b03c 100644 --- a/plugins/QuickSearch/src/window.cpp +++ b/plugins/QuickSearch/src/window.cpp @@ -417,13 +417,13 @@ bool QSMainDlg::OnInitDialog() SetWindowPos(m_hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); } - CheckDlgButton(m_hwnd, IDC_CH_SHOWOFFLINE, (g_plugin.m_flags & QSO_SHOWOFFLINE) != 0); + chkShowOffline.SetState((g_plugin.m_flags & QSO_SHOWOFFLINE) != 0); szFilterProto = nullptr; // display all protocols if (g_plugin.m_flags & QSO_SHOWOFFLINE) bShowOffline = true; - CheckDlgButton(m_hwnd, IDC_CH_COLORIZE, (g_plugin.m_flags & QSO_COLORIZE) != 0); + chkColorize.SetState((g_plugin.m_flags & QSO_COLORIZE) != 0); // Window INT_PTR tmp = GetWindowLongPtrW(m_hwnd, GWL_EXSTYLE); @@ -640,10 +640,10 @@ void QSMainDlg::onChange_ShowOffline(CCtrlCheck *) void QSMainDlg::onChange_Colorize(CCtrlCheck *) { - if (IsDlgButtonChecked(m_hwnd, IDC_CH_COLORIZE)) - g_plugin.m_flags &= ~QSO_COLORIZE; - else + if (chkColorize.IsChecked()) g_plugin.m_flags |= QSO_COLORIZE; + else + g_plugin.m_flags &= ~QSO_COLORIZE; RedrawWindow(m_grid.GetHwnd(), nullptr, 0, RDW_INVALIDATE); } |