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/settings/SettingsNetwork.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 'src/ui/dialog/settings/SettingsNetwork.cpp')
-rw-r--r-- | src/ui/dialog/settings/SettingsNetwork.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/ui/dialog/settings/SettingsNetwork.cpp b/src/ui/dialog/settings/SettingsNetwork.cpp index b270b10c..8a95c177 100644 --- a/src/ui/dialog/settings/SettingsNetwork.cpp +++ b/src/ui/dialog/settings/SettingsNetwork.cpp @@ -46,7 +46,7 @@ GpgFrontend::UI::NetworkTab::NetworkTab(QWidget *parent) }); connect( - ui_->autoImportMissingKeyCheckBox, &QCheckBox::stateChanged, this, + ui_->autoFetchKeyPublishStatusCheckBox, &QCheckBox::stateChanged, this, [=](int state) { ui_->forbidALLGnuPGNetworkConnectionCheckBox->setCheckState( state == Qt::Checked @@ -56,10 +56,10 @@ GpgFrontend::UI::NetworkTab::NetworkTab(QWidget *parent) connect(ui_->forbidALLGnuPGNetworkConnectionCheckBox, &QCheckBox::stateChanged, this, [=](int state) { - ui_->autoImportMissingKeyCheckBox->setCheckState( + ui_->autoFetchKeyPublishStatusCheckBox->setCheckState( state == Qt::Checked ? Qt::Unchecked - : ui_->autoImportMissingKeyCheckBox->checkState()); + : ui_->autoFetchKeyPublishStatusCheckBox->checkState()); }); connect( @@ -92,8 +92,8 @@ GpgFrontend::UI::NetworkTab::NetworkTab(QWidget *parent) ui_->prohibitUpdateCheck->setText( tr("Prohibit checking for version updates when the program starts.")); } - ui_->autoImportMissingKeyCheckBox->setText( - tr("Automatically import a missing key for signature verification.")); + ui_->autoFetchKeyPublishStatusCheckBox->setText( + tr("Automatically fetch key publish status from key server.")); ui_->networkAbilityTipsLabel->setText( tr("Tips: These Option Changes take effect only after the " "application restart.")); @@ -136,10 +136,10 @@ void GpgFrontend::UI::NetworkTab::SetSettings() { ui_->prohibitUpdateCheck->setCheckState( prohibit_update_checking ? Qt::Checked : Qt::Unchecked); - auto auto_import_missing_key = - settings.value("network/auto_import_missing_key", true).toBool(); - ui_->autoImportMissingKeyCheckBox->setCheckState( - auto_import_missing_key ? Qt::Checked : Qt::Unchecked); + auto auto_fetch_key_publish_status = + settings.value("network/auto_fetch_key_publish_status", false).toBool(); + ui_->autoFetchKeyPublishStatusCheckBox->setCheckState( + auto_fetch_key_publish_status ? Qt::Checked : Qt::Unchecked); switch_ui_proxy_type(ui_->proxyTypeComboBox->currentText()); switch_ui_enabled(ui_->enableProxyCheckBox->isChecked()); @@ -160,8 +160,8 @@ void GpgFrontend::UI::NetworkTab::ApplySettings() { ui_->forbidALLGnuPGNetworkConnectionCheckBox->isChecked()); settings.setValue("network/prohibit_update_checking", ui_->prohibitUpdateCheck->isChecked()); - settings.setValue("network/auto_import_missing_key", - ui_->autoImportMissingKeyCheckBox->isChecked()); + settings.setValue("network/auto_fetch_key_publish_status", + ui_->autoFetchKeyPublishStatusCheckBox->isChecked()); apply_proxy_settings(); } |