aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/keypair_details/KeyPairDetailTab.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/dialog/keypair_details/KeyPairDetailTab.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 '')
-rw-r--r--src/ui/dialog/keypair_details/KeyPairDetailTab.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/ui/dialog/keypair_details/KeyPairDetailTab.cpp b/src/ui/dialog/keypair_details/KeyPairDetailTab.cpp
index 21c16107..8450083f 100644
--- a/src/ui/dialog/keypair_details/KeyPairDetailTab.cpp
+++ b/src/ui/dialog/keypair_details/KeyPairDetailTab.cpp
@@ -306,16 +306,10 @@ void KeyPairDetailTab::slot_refresh_key() {
void KeyPairDetailTab::slot_query_key_publish_state() {
bool forbid_all_gnupg_connection =
- GlobalSettingStation::GetInstance()
- .GetSettings()
- .value("network/forbid_all_gnupg_connection")
- .toBool();
+ GetSettings().value("network/forbid_all_gnupg_connection").toBool();
bool auto_fetch_key_publish_status =
- GlobalSettingStation::GetInstance()
- .GetSettings()
- .value("network/auto_fetch_key_publish_status")
- .toBool();
+ GetSettings().value("network/auto_fetch_key_publish_status").toBool();
if (forbid_all_gnupg_connection || !auto_fetch_key_publish_status) return;