diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/settingswidget.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/settingswidget.cpp b/src/settingswidget.cpp index 2807ab5..40c6c5b 100644 --- a/src/settingswidget.cpp +++ b/src/settingswidget.cpp @@ -405,7 +405,10 @@ void SettingsWidget::on_automaticThemeCheckBox_toggled(bool checked) automaticTheme->setWindowFlag(Qt::Dialog); automaticTheme->setAttribute(Qt::WA_DeleteOnClose,true); connect(automaticTheme,&AutomaticTheme::destroyed,[=](){ - ui->automaticThemeCheckBox->setChecked(settings.value("automaticTheme",false).toBool()); + bool automaticThemeSwitching = settings.value("automaticTheme",false).toBool(); + ui->automaticThemeCheckBox->setChecked(automaticThemeSwitching); + if(automaticThemeSwitching) + themeSwitchTimerTimeout(); updateAutomaticTheme(); }); automaticTheme->show(); |