diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2020-12-01 20:42:42 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2020-12-01 20:53:45 +0300 |
commit | 56cddbdae9e98a9457a63203f433ed82ca570828 (patch) | |
tree | 968a7c30b7cbf5b76912532d3f7e90ae0bf0dad8 /src/gui/generalsettings.cpp | |
parent | e118838199f8f0537c1b90893d12c119bce7aa08 (diff) |
Bugfix: Update "Sync hidden files" button
Fixes: #8258
Diffstat (limited to 'src/gui/generalsettings.cpp')
-rw-r--r-- | src/gui/generalsettings.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gui/generalsettings.cpp b/src/gui/generalsettings.cpp index 96f683d42..a8ad4c5c6 100644 --- a/src/gui/generalsettings.cpp +++ b/src/gui/generalsettings.cpp @@ -52,12 +52,10 @@ GeneralSettings::GeneralSettings(QWidget *parent) this, &GeneralSettings::slotToggleOptionalDesktopNotifications); connect(_ui->showInExplorerNavigationPaneCheckBox, &QAbstractButton::toggled, this, &GeneralSettings::slotShowInExplorerNavigationPane); - updateAutoStartInfo(); + reloadConfig(); loadMiscSettings(); slotUpdateInfo(); - _ui->syncHiddenFilesCheckBox->setChecked(!FolderMan::instance()->ignoreHiddenFiles()); - // misc connect(_ui->monoIconsCheckBox, &QAbstractButton::toggled, this, &GeneralSettings::saveMiscSettings); connect(_ui->crashreporterCheckBox, &QAbstractButton::toggled, this, &GeneralSettings::saveMiscSettings); @@ -144,7 +142,7 @@ void GeneralSettings::loadMiscSettings() void GeneralSettings::showEvent(QShowEvent *) { - updateAutoStartInfo(); + reloadConfig(); } void GeneralSettings::slotUpdateInfo() @@ -272,8 +270,9 @@ void GeneralSettings::slotIgnoreFilesEditor() } } -void GeneralSettings::updateAutoStartInfo() +void GeneralSettings::reloadConfig() { + _ui->syncHiddenFilesCheckBox->setChecked(!FolderMan::instance()->ignoreHiddenFiles()); if (Utility::hasSystemLaunchOnStartup(Theme::instance()->appName())) { _ui->autostartCheckBox->setChecked(true); _ui->autostartCheckBox->setDisabled(true); |