diff --git a/src/libs/core/settings.cpp b/src/libs/core/settings.cpp index fec4a781..46241c58 100644 --- a/src/libs/core/settings.cpp +++ b/src/libs/core/settings.cpp @@ -53,6 +53,7 @@ Settings::Settings(QObject *parent) connect(qApp->styleHints(), &QStyleHints::colorSchemeChanged, this, [this]() { if (contentAppearance == ContentAppearance::Automatic) { applyColorScheme(); + emit updated(); } }); #endif diff --git a/src/libs/ui/settingsdialog.cpp b/src/libs/ui/settingsdialog.cpp index a11643e3..8ea6160d 100644 --- a/src/libs/ui/settingsdialog.cpp +++ b/src/libs/ui/settingsdialog.cpp @@ -327,11 +327,12 @@ void SettingsDialog::saveSettings() settings->isIgnoreSslErrorsEnabled = ui->ignoreSslErrorsCheckBox->isChecked(); - settings->save(); - #if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0) + // Must precede save(), so that updated() is emitted with the effective scheme. settings->applyColorScheme(); #endif + + settings->save(); } } // namespace Zeal::WidgetUi