Skip to content

Commit

Permalink
x windows dark mode: avoid an unexpected popup
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeMartinez committed May 30, 2024
1 parent 1a360a4 commit 25308af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/GUI/VCL/GUI_Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2047,6 +2047,7 @@ void __fastcall TMainF::Footer_ButtonClick(TObject *Sender)
//---------------------------------------------------------------------------
void __fastcall TMainF::M_Options_DarkmodeClick(TObject* Sender)
{
M_View_EasyClick(NULL); // This is for avoiding a popup "Cannot focus a disabled or invisible window when another view is selected. TODO: better handle of this issue
if (M_Options_Darkmode->Checked) {
TStyleManager::TrySetStyle(LIGHT_MODE_STYLE, false);
M_Options_Darkmode->Checked = false;
Expand Down

0 comments on commit 25308af

Please sign in to comment.