aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/settings/SettingsNetwork.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/settings/SettingsNetwork.cpp
parentfix: improve module (diff)
downloadGpgFrontend-9eb339dd2b463cc86bbeed73e349afe0b3ad7a23.tar.gz
GpgFrontend-9eb339dd2b463cc86bbeed73e349afe0b3ad7a23.zip
refactor: use piml tech to rewrite GlobalSettingsStation
Diffstat (limited to '')
-rw-r--r--src/ui/dialog/settings/SettingsNetwork.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/dialog/settings/SettingsNetwork.cpp b/src/ui/dialog/settings/SettingsNetwork.cpp
index c2e74ca9..83b97ed2 100644
--- a/src/ui/dialog/settings/SettingsNetwork.cpp
+++ b/src/ui/dialog/settings/SettingsNetwork.cpp
@@ -97,7 +97,7 @@ GpgFrontend::UI::NetworkTab::NetworkTab(QWidget *parent)
}
void GpgFrontend::UI::NetworkTab::SetSettings() {
- auto &settings = GlobalSettingStation::GetInstance().GetUISettings();
+ auto &settings = GlobalSettingStation::GetInstance().GetMainSettings();
try {
std::string proxy_host = settings.lookup("proxy.proxy_host");
@@ -190,7 +190,7 @@ void GpgFrontend::UI::NetworkTab::SetSettings() {
void GpgFrontend::UI::NetworkTab::ApplySettings() {
auto &settings =
- GpgFrontend::GlobalSettingStation::GetInstance().GetUISettings();
+ GpgFrontend::GlobalSettingStation::GetInstance().GetMainSettings();
if (!settings.exists("proxy") ||
settings.lookup("proxy").getType() != libconfig::Setting::TypeGroup)