From 25308af75c79b2825bfc0643295af35cef56537e Mon Sep 17 00:00:00 2001 From: Jerome Martinez Date: Fri, 31 May 2024 00:50:42 +0200 Subject: [PATCH] x windows dark mode: avoid an unexpected popup --- Source/GUI/VCL/GUI_Main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/GUI/VCL/GUI_Main.cpp b/Source/GUI/VCL/GUI_Main.cpp index b0cb279f0..36c5d9768 100644 --- a/Source/GUI/VCL/GUI_Main.cpp +++ b/Source/GUI/VCL/GUI_Main.cpp @@ -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;