Skip to content

Commit

Permalink
Ensure notify big folders checkbox state is changed when parent check…
Browse files Browse the repository at this point in the history
…box changes

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Jul 4, 2023
1 parent d707677 commit 253f0f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/generalsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,13 +420,16 @@ void GeneralSettings::saveMiscSettings()
ConfigFile cfgFile;

const auto useMonoIcons = _ui->monoIconsCheckBox->isChecked();
const auto newFolderLimitEnabled = _ui->newFolderLimitCheckBox->isChecked();
Theme::instance()->setSystrayUseMonoIcons(useMonoIcons);

cfgFile.setMonoIcons(useMonoIcons);
cfgFile.setCrashReporter(_ui->crashreporterCheckBox->isChecked());
cfgFile.setNewBigFolderSizeLimit(_ui->newFolderLimitCheckBox->isChecked(), _ui->newFolderLimitSpinBox->value());
cfgFile.setNewBigFolderSizeLimit(newFolderLimitEnabled, _ui->newFolderLimitSpinBox->value());
cfgFile.setConfirmExternalStorage(_ui->newExternalStorage->isChecked());
cfgFile.setNotifyExistingFoldersOverLimit(_ui->existingFolderLimitCheckBox->isChecked());

_ui->existingFolderLimitCheckBox->setEnabled(newFolderLimitEnabled);
}

void GeneralSettings::slotToggleLaunchOnStartup(bool enable)
Expand Down

0 comments on commit 253f0f9

Please sign in to comment.