Skip to content

Commit 301f44e

Browse files
x Windows GUI dark mode: avoid an unexpected popup
1 parent 1a360a4 commit 301f44e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/GUI/VCL/GUI_Main.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -2047,6 +2047,7 @@ void __fastcall TMainF::Footer_ButtonClick(TObject *Sender)
20472047
//---------------------------------------------------------------------------
20482048
void __fastcall TMainF::M_Options_DarkmodeClick(TObject* Sender)
20492049
{
2050+
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
20502051
if (M_Options_Darkmode->Checked) {
20512052
TStyleManager::TrySetStyle(LIGHT_MODE_STYLE, false);
20522053
M_Options_Darkmode->Checked = false;

0 commit comments

Comments
 (0)