aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/settings/SettingsNetwork.cpp
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2023-02-25 11:49:54 +0000
committerGitHub <[email protected]>2023-02-25 11:49:54 +0000
commitaf1cd680f2496629026ba27707cef2afd860f5f9 (patch)
tree78e78450893e98b8828cc41010e377c1561e5f34 /src/ui/dialog/settings/SettingsNetwork.cpp
parentfix: improve manual (diff)
parentfeat: use aqt to install qt in ci build (diff)
downloadGpgFrontend-af1cd680f2496629026ba27707cef2afd860f5f9.tar.gz
GpgFrontend-af1cd680f2496629026ba27707cef2afd860f5f9.zip
Merge pull request #91 from saturneric/dev/2.0.10/main
Develop 2.1.0.1
Diffstat (limited to '')
-rw-r--r--src/ui/dialog/settings/SettingsNetwork.cpp22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/ui/dialog/settings/SettingsNetwork.cpp b/src/ui/dialog/settings/SettingsNetwork.cpp
index d4edae42..fe3d450e 100644
--- a/src/ui/dialog/settings/SettingsNetwork.cpp
+++ b/src/ui/dialog/settings/SettingsNetwork.cpp
@@ -76,28 +76,28 @@ void GpgFrontend::UI::NetworkTab::SetSettings() {
std::string proxy_host = settings.lookup("proxy.proxy_host");
ui_->proxyServerAddressEdit->setText(proxy_host.c_str());
} catch (...) {
- LOG(ERROR) << _("Setting Operation Error") << _("proxy_host");
+ SPDLOG_ERROR("setting operation error: proxy_host");
}
try {
std::string std_username = settings.lookup("proxy.username");
ui_->usernameEdit->setText(std_username.c_str());
} catch (...) {
- LOG(ERROR) << _("Setting Operation Error") << _("username");
+ SPDLOG_ERROR("setting operation error: username");
}
try {
std::string std_password = settings.lookup("proxy.password");
ui_->passwordEdit->setText(std_password.c_str());
} catch (...) {
- LOG(ERROR) << _("Setting Operation Error") << _("password");
+ SPDLOG_ERROR("setting operation error: password");
}
try {
int port = settings.lookup("proxy.port");
ui_->portSpin->setValue(port);
} catch (...) {
- LOG(ERROR) << _("Setting Operation Error") << _("port");
+ SPDLOG_ERROR("setting operation error: port");
}
ui_->proxyTypeComboBox->setCurrentText("HTTP");
@@ -105,7 +105,7 @@ void GpgFrontend::UI::NetworkTab::SetSettings() {
std::string proxy_type = settings.lookup("proxy.proxy_type");
ui_->proxyTypeComboBox->setCurrentText(proxy_type.c_str());
} catch (...) {
- LOG(ERROR) << _("Setting Operation Error") << _("proxy_type");
+ SPDLOG_ERROR("setting operation error: proxy_type");
}
switch_ui_proxy_type(ui_->proxyTypeComboBox->currentText());
@@ -117,7 +117,7 @@ void GpgFrontend::UI::NetworkTab::SetSettings() {
else
ui_->enableProxyCheckBox->setCheckState(Qt::Unchecked);
} catch (...) {
- LOG(ERROR) << _("Setting Operation Error") << _("proxy_enable");
+ SPDLOG_ERROR("setting operation error: proxy_enable");
}
{
@@ -134,7 +134,7 @@ void GpgFrontend::UI::NetworkTab::SetSettings() {
else
ui_->forbidALLCheckBox->setCheckState(Qt::Unchecked);
} catch (...) {
- LOG(ERROR) << _("Setting Operation Error") << _("forbid_all_connection");
+ SPDLOG_ERROR("setting operation error: forbid_all_connection");
}
ui_->prohibitUpdateCheck->setCheckState(Qt::Unchecked);
@@ -146,13 +146,11 @@ void GpgFrontend::UI::NetworkTab::SetSettings() {
else
ui_->prohibitUpdateCheck->setCheckState(Qt::Unchecked);
} catch (...) {
- LOG(ERROR) << _("Setting Operation Error") << _("prohibit_update_checking");
+ SPDLOG_ERROR("setting operation error: prohibit_update_checking");
}
}
void GpgFrontend::UI::NetworkTab::ApplySettings() {
- LOG(INFO) << "called";
-
auto &settings =
GpgFrontend::GlobalSettingStation::GetInstance().GetUISettings();
@@ -224,8 +222,6 @@ void GpgFrontend::UI::NetworkTab::ApplySettings() {
}
apply_proxy_settings();
-
- LOG(INFO) << "done";
}
void GpgFrontend::UI::NetworkTab::slot_test_proxy_connection_result() {
@@ -270,7 +266,7 @@ void GpgFrontend::UI::NetworkTab::slot_test_proxy_connection_result() {
waiting_dialog->deleteLater();
});
connect(waiting_dialog, &QProgressDialog::canceled, [=]() {
- LOG(INFO) << "cancel clicked";
+ SPDLOG_DEBUG("cancel clicked");
if (thread->isRunning()) thread->terminate();
});