Fix disabling alnative icons on tab in dark mode issue

Fix #10775, close #10798
This commit is contained in:
Ashfaaq18 2021-11-18 15:08:36 +05:30 committed by Don Ho
parent 9662b2e7d3
commit c7140f279b
1 changed files with 1 additions and 1 deletions

View File

@ -580,7 +580,7 @@ INT_PTR CALLBACK GeneralSubDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM)
NppGUI& nppGUI = nppParam.getNppGUI();
nppGUI._tabStatus ^= TAB_ALTICONS;
bool isChecked = (BST_CHECKED == ::SendDlgItemMessage(_hSelf, IDC_CHECK_TAB_ALTICONS, BM_GETCHECK, 0, 0));
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_CHANGETABBAEICONS, 0, isChecked ? 1 : 0);
::SendMessage(::GetParent(_hParent), NPPM_INTERNAL_CHANGETABBAEICONS, 0, isChecked ? 1 : (nppGUI._darkmode._isEnabled ? 2 : 0));
return TRUE;
}