aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindow.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-01-27 15:51:27 +0000
committersaturneric <[email protected]>2025-01-27 15:51:27 +0000
commit5d2b02097eeb6ed166611a22cef66a8c56b7c997 (patch)
treed785a00dc2acbb8f6c5212eac6bdcebeb388b776 /src/ui/main_window/MainWindow.cpp
parentfix: kill all gnupg daemons in a proper way (diff)
downloadGpgFrontend-5d2b02097eeb6ed166611a22cef66a8c56b7c997.tar.gz
GpgFrontend-5d2b02097eeb6ed166611a22cef66a8c56b7c997.zip
refactor: clean up code
Diffstat (limited to 'src/ui/main_window/MainWindow.cpp')
-rw-r--r--src/ui/main_window/MainWindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/main_window/MainWindow.cpp b/src/ui/main_window/MainWindow.cpp
index b32d9c94..e0f7a49a 100644
--- a/src/ui/main_window/MainWindow.cpp
+++ b/src/ui/main_window/MainWindow.cpp
@@ -138,7 +138,7 @@ void MainWindow::Init() noexcept {
Module::TriggerEvent("APPLICATION_LOADED");
// check version information
- auto settings = GlobalSettingStation::GetInstance().GetSettings();
+ auto settings = GetSettings();
auto prohibit_update_checking =
settings.value("network/prohibit_update_checking").toBool();
if (!prohibit_update_checking) {
@@ -175,7 +175,7 @@ void MainWindow::restore_settings() {
if (key_server.server_list.empty()) key_server.ResetDefaultServerList();
if (key_server.default_server < 0) key_server.default_server = 0;
- auto settings = GlobalSettingStation::GetInstance().GetSettings();
+ auto settings = GetSettings();
if (!settings.contains("gnupg/non_ascii_at_file_operation")) {
settings.setValue("gnupg/non_ascii_at_file_operation", true);
}