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/SettingsNetwork.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/SettingsNetwork.cpp')
-rw-r--r-- | src/ui/dialog/settings/SettingsNetwork.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/dialog/settings/SettingsNetwork.cpp b/src/ui/dialog/settings/SettingsNetwork.cpp index 8a95c177..66f3abb1 100644 --- a/src/ui/dialog/settings/SettingsNetwork.cpp +++ b/src/ui/dialog/settings/SettingsNetwork.cpp @@ -101,7 +101,7 @@ GpgFrontend::UI::NetworkTab::NetworkTab(QWidget *parent) } void GpgFrontend::UI::NetworkTab::SetSettings() { - auto settings = GlobalSettingStation::GetInstance().GetSettings(); + auto settings = GetSettings(); auto proxy_host = settings.value("proxy/proxy_host").toString(); ui_->proxyServerAddressEdit->setText(proxy_host); @@ -146,8 +146,7 @@ void GpgFrontend::UI::NetworkTab::SetSettings() { } void GpgFrontend::UI::NetworkTab::ApplySettings() { - auto settings = - GpgFrontend::GlobalSettingStation::GetInstance().GetSettings(); + auto settings = GpgFrontend::GetSettings(); settings.setValue("proxy/proxy_host", ui_->proxyServerAddressEdit->text()); settings.setValue("proxy/username", ui_->usernameEdit->text()); |