Skip to content

Commit e06dd9a

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/GUI/VCL/GUI_Main.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -2062,7 +2062,8 @@ void __fastcall TMainF::ApplicationEvents1OnSettingChange(
20622062
TObject* Sender, int Flag, const UnicodeString Section, int &Result)
20632063
{
20642064
if (Section == "ImmersiveColorSet") {
2065-
if (WindowsDarkModeEnabled()) {
2065+
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
2066+
if (WindowsDarkModeEnabled()) {
20662067
TStyleManager::TrySetStyle(DARK_MODE_STYLE, false);
20672068
M_Options_Darkmode->Checked = true;
20682069
} else {

0 commit comments

Comments
 (0)