Pārlūkot izejas kodu

Bug 1805 – Failure when switching between light and dark interface themes (2nd)

https://winscp.net/tracker/1805
(cherry picked from commit 544596929a1e3add520b0ddfbd7dcb4588a8b6ff)

Source commit: 762026e2f6e4a99651cd9240200b758470538e07
Martin Prikryl 6 gadi atpakaļ
vecāks
revīzija
1836b7e1f7
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      source/forms/CustomScpExplorer.cpp

+ 1 - 1
source/forms/CustomScpExplorer.cpp

@@ -8739,7 +8739,7 @@ void __fastcall TCustomScpExplorerForm::QueueSplitterDblClick(TObject * /*Sender
 void __fastcall TCustomScpExplorerForm::WMWinIniChange(TMessage & Message)
 void __fastcall TCustomScpExplorerForm::WMWinIniChange(TMessage & Message)
 {
 {
   // Do not handle, when shutting down anyway (maybe also when not setup completelly yet?)
   // Do not handle, when shutting down anyway (maybe also when not setup completelly yet?)
-  if (FInvalid)
+  if (!FInvalid)
   {
   {
     WinConfiguration->ResetSysDarkTheme();
     WinConfiguration->ResetSysDarkTheme();
     ConfigurationChanged();
     ConfigurationChanged();