aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindowUI.cpp
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2023-04-08 08:58:02 +0000
committerGitHub <[email protected]>2023-04-08 08:58:02 +0000
commit344096f325d686cf9810df6764fdb10ec8709d4a (patch)
treec629f58099a7e01084cb0fc09a165e1cf858ed9e /src/ui/main_window/MainWindowUI.cpp
parentMerge pull request #95 from saturneric/dev/2.1.0/main (diff)
parentfeat: update the online translation way (diff)
downloadGpgFrontend-344096f325d686cf9810df6764fdb10ec8709d4a.tar.gz
GpgFrontend-344096f325d686cf9810df6764fdb10ec8709d4a.zip
Merge pull request #96 from saturneric/dev/2.1.0/main
Develop 2.1.1.2
Diffstat (limited to 'src/ui/main_window/MainWindowUI.cpp')
-rw-r--r--src/ui/main_window/MainWindowUI.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/ui/main_window/MainWindowUI.cpp b/src/ui/main_window/MainWindowUI.cpp
index d1a72c83..6e664988 100644
--- a/src/ui/main_window/MainWindowUI.cpp
+++ b/src/ui/main_window/MainWindowUI.cpp
@@ -253,16 +253,9 @@ void MainWindow::create_actions() {
CommonUtils::GetInstance()->SlotImportKeyFromClipboard(this);
});
- // get settings
- auto& settings = GlobalSettingStation::GetInstance().GetUISettings();
- // read settings
- bool forbid_all_gnupg_connection = false;
- try {
- forbid_all_gnupg_connection =
- settings.lookup("network.forbid_all_gnupg_connection");
- } catch (...) {
- SPDLOG_ERROR("setting operation error: forbid_all_gnupg_connection");
- }
+ bool forbid_all_gnupg_connection =
+ GlobalSettingStation::GetInstance().LookupSettings(
+ "network.forbid_all_gnupg_connection", false);
import_key_from_key_server_act_ = new QAction(_("Keyserver"), this);
import_key_from_key_server_act_->setIcon(