https://winscp.net/tracker/1805 (cherry picked from commit 544596929a1e3add520b0ddfbd7dcb4588a8b6ff) Source commit: 762026e2f6e4a99651cd9240200b758470538e07
@@ -8739,7 +8739,7 @@ void __fastcall TCustomScpExplorerForm::QueueSplitterDblClick(TObject * /*Sender
void __fastcall TCustomScpExplorerForm::WMWinIniChange(TMessage & Message)
{
// Do not handle, when shutting down anyway (maybe also when not setup completelly yet?)
- if (FInvalid)
+ if (!FInvalid)
WinConfiguration->ResetSysDarkTheme();
ConfigurationChanged();