diff options
author | saturneric <[email protected]> | 2024-11-22 12:06:49 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-11-22 12:06:49 +0000 |
commit | 3e8278bf4b4d71f107af4fa6ebb59ab5ae35feab (patch) | |
tree | 201b767b2bd6ac0ed2ca65c26253ec5d739be10c /src/ui/dialog/keypair_details/KeyPairDetailTab.cpp | |
parent | fix: version of gpgme should greater than 1.17.0 (diff) | |
download | GpgFrontend-3e8278bf4b4d71f107af4fa6ebb59ab5ae35feab.tar.gz GpgFrontend-3e8278bf4b4d71f107af4fa6ebb59ab5ae35feab.zip |
feat: add option to disable auto fetch key publish status function
Diffstat (limited to '')
-rw-r--r-- | src/ui/dialog/keypair_details/KeyPairDetailTab.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/ui/dialog/keypair_details/KeyPairDetailTab.cpp b/src/ui/dialog/keypair_details/KeyPairDetailTab.cpp index 820e9963..33b699b5 100644 --- a/src/ui/dialog/keypair_details/KeyPairDetailTab.cpp +++ b/src/ui/dialog/keypair_details/KeyPairDetailTab.cpp @@ -310,7 +310,14 @@ void KeyPairDetailTab::slot_query_key_publish_state() { .GetSettings() .value("network/forbid_all_gnupg_connection") .toBool(); - if (forbid_all_gnupg_connection) return; + + bool auto_fetch_key_publish_status = + GlobalSettingStation::GetInstance() + .GetSettings() + .value("network/auto_fetch_key_publish_status") + .toBool(); + + if (forbid_all_gnupg_connection || !auto_fetch_key_publish_status) return; if (!Module::IsModuleActivate( "com.bktus.gpgfrontend.module.key_server_sync")) { @@ -344,7 +351,7 @@ void KeyPairDetailTab::slot_query_key_publish_state() { if (!key_data.isEmpty()) { slot_refresh_notice( - ":/icons/sent.png", + ":/icons/publish.png", tr("Notice: The key has been published on " "keys.openpgp.org.")); } |