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/Wizard.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/Wizard.cpp')
-rw-r--r-- | src/ui/dialog/Wizard.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ui/dialog/Wizard.cpp b/src/ui/dialog/Wizard.cpp index 3a3c0800..ee70239a 100644 --- a/src/ui/dialog/Wizard.cpp +++ b/src/ui/dialog/Wizard.cpp @@ -45,10 +45,7 @@ Wizard::Wizard(QWidget* parent) : QWizard(parent) { setPixmap(QWizard::LogoPixmap, QPixmap(":/icons/gpgfrontend_logo.png").scaled(64, 64)); - int next_page_id = GlobalSettingStation::GetInstance() - .GetSettings() - .value("wizard.next_page", -1) - .toInt(); + int next_page_id = GetSettings().value("wizard.next_page", -1).toInt(); setStartId(next_page_id); connect(this, &Wizard::accepted, this, &Wizard::slot_wizard_accepted); @@ -57,7 +54,7 @@ Wizard::Wizard(QWidget* parent) : QWizard(parent) { void Wizard::slot_wizard_accepted() { // Don't show is mapped to show -> negation try { - auto settings = GlobalSettingStation::GetInstance().GetSettings(); + auto settings = GetSettings(); settings.setValue("wizard/show_wizard", false); } catch (...) { FLOG_W("setting operation error"); |