aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/gnupg/GnuPGControllerDialog.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-10-17 18:06:44 +0000
committersaturneric <[email protected]>2023-10-17 18:06:44 +0000
commit9eb339dd2b463cc86bbeed73e349afe0b3ad7a23 (patch)
tree7383cb1c44828e33d05d32f07dff595c8e27d380 /src/ui/dialog/gnupg/GnuPGControllerDialog.cpp
parentfix: improve module (diff)
downloadGpgFrontend-9eb339dd2b463cc86bbeed73e349afe0b3ad7a23.tar.gz
GpgFrontend-9eb339dd2b463cc86bbeed73e349afe0b3ad7a23.zip
refactor: use piml tech to rewrite GlobalSettingsStation
Diffstat (limited to 'src/ui/dialog/gnupg/GnuPGControllerDialog.cpp')
-rw-r--r--src/ui/dialog/gnupg/GnuPGControllerDialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/dialog/gnupg/GnuPGControllerDialog.cpp b/src/ui/dialog/gnupg/GnuPGControllerDialog.cpp
index 4bcd2957..f80b6c7a 100644
--- a/src/ui/dialog/gnupg/GnuPGControllerDialog.cpp
+++ b/src/ui/dialog/gnupg/GnuPGControllerDialog.cpp
@@ -101,7 +101,7 @@ GnuPGControllerDialog::GnuPGControllerDialog(QWidget* parent)
return;
}
- auto& settings = GlobalSettingStation::GetInstance().GetUISettings();
+ auto& settings = GlobalSettingStation::GetInstance().GetMainSettings();
auto& general = settings["general"];
// update settings
@@ -138,7 +138,7 @@ GnuPGControllerDialog::GnuPGControllerDialog(QWidget* parent)
return;
}
- auto& settings = GlobalSettingStation::GetInstance().GetUISettings();
+ auto& settings = GlobalSettingStation::GetInstance().GetMainSettings();
auto& general = settings["general"];
// update settings
@@ -268,7 +268,7 @@ void GnuPGControllerDialog::slot_update_custom_gnupg_install_path_label(
}
void GnuPGControllerDialog::set_settings() {
- auto& settings = GlobalSettingStation::GetInstance().GetUISettings();
+ auto& settings = GlobalSettingStation::GetInstance().GetMainSettings();
try {
bool non_ascii_when_export =
@@ -319,7 +319,7 @@ void GnuPGControllerDialog::set_settings() {
void GnuPGControllerDialog::apply_settings() {
auto& settings =
- GpgFrontend::GlobalSettingStation::GetInstance().GetUISettings();
+ GpgFrontend::GlobalSettingStation::GetInstance().GetMainSettings();
if (!settings.exists("general") ||
settings.lookup("general").getType() != libconfig::Setting::TypeGroup)