diff options
author | saturneric <[email protected]> | 2025-01-27 15:51:27 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-01-27 15:51:27 +0000 |
commit | 5d2b02097eeb6ed166611a22cef66a8c56b7c997 (patch) | |
tree | d785a00dc2acbb8f6c5212eac6bdcebeb388b776 /src/ui/dialog/settings/SettingsGeneral.cpp | |
parent | fix: kill all gnupg daemons in a proper way (diff) | |
download | GpgFrontend-5d2b02097eeb6ed166611a22cef66a8c56b7c997.tar.gz GpgFrontend-5d2b02097eeb6ed166611a22cef66a8c56b7c997.zip |
refactor: clean up code
Diffstat (limited to 'src/ui/dialog/settings/SettingsGeneral.cpp')
-rw-r--r-- | src/ui/dialog/settings/SettingsGeneral.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/dialog/settings/SettingsGeneral.cpp b/src/ui/dialog/settings/SettingsGeneral.cpp index 73599729..7df9ff1c 100644 --- a/src/ui/dialog/settings/SettingsGeneral.cpp +++ b/src/ui/dialog/settings/SettingsGeneral.cpp @@ -109,7 +109,7 @@ GeneralTab::GeneralTab(QWidget* parent) } void GeneralTab::SetSettings() { - auto settings = GlobalSettingStation::GetInstance().GetSettings(); + auto settings = GetSettings(); auto clear_gpg_password_cache = settings.value("basic/clear_gpg_password_cache", true).toBool(); @@ -147,8 +147,7 @@ void GeneralTab::SetSettings() { } void GeneralTab::ApplySettings() { - auto settings = - GpgFrontend::GlobalSettingStation::GetInstance().GetSettings(); + auto settings = GpgFrontend::GetSettings(); settings.setValue("basic/longer_expiration_date", ui_->longerKeyExpirationDateCheckBox->isChecked()); |