diff options
author | saturneric <[email protected]> | 2024-04-28 17:01:25 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-04-28 17:01:25 +0000 |
commit | 0dbbc0e0385b4710a10e5c9a3bf22002b4971953 (patch) | |
tree | ff854aa92553a9b07dab4aae5f2f122806f6aff7 /src/ui/dialog/controller/GnuPGControllerDialog.cpp | |
parent | fix: code.qt.io is down now (diff) | |
parent | feat: add module manager ui file (diff) | |
download | GpgFrontend-0dbbc0e0385b4710a10e5c9a3bf22002b4971953.tar.gz GpgFrontend-0dbbc0e0385b4710a10e5c9a3bf22002b4971953.zip |
Merge branch 'dev/2.1.2/main' into develop
Diffstat (limited to 'src/ui/dialog/controller/GnuPGControllerDialog.cpp')
-rw-r--r-- | src/ui/dialog/controller/GnuPGControllerDialog.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/ui/dialog/controller/GnuPGControllerDialog.cpp b/src/ui/dialog/controller/GnuPGControllerDialog.cpp index f1fa87e2..4614fed7 100644 --- a/src/ui/dialog/controller/GnuPGControllerDialog.cpp +++ b/src/ui/dialog/controller/GnuPGControllerDialog.cpp @@ -185,9 +185,6 @@ void GnuPGControllerDialog::SlotAccept() { void GnuPGControllerDialog::slot_update_custom_key_database_path_label( int state) { - // announce the restart - this->slot_set_restart_needed(kDeepRestartCode); - // hide label (not necessary to show the default path) this->ui_->currentKeyDatabasePathLabel->setHidden(state != Qt::CheckState::Checked); @@ -225,9 +222,6 @@ void GnuPGControllerDialog::slot_update_custom_key_database_path_label( void GnuPGControllerDialog::slot_update_custom_gnupg_install_path_label( int state) { - // announce the restart - this->slot_set_restart_needed(kDeepRestartCode); - // hide label (not necessary to show the default path) this->ui_->currentCustomGnuPGInstallPathLabel->setHidden( state != Qt::CheckState::Checked); @@ -310,13 +304,13 @@ void GnuPGControllerDialog::set_settings() { ui_->restartGpgAgentOnStartCheckBox->setCheckState(Qt::Checked); } - this->slot_set_restart_needed(false); - this->slot_update_custom_key_database_path_label( use_custom_key_database_path ? Qt::Checked : Qt::Unchecked); this->slot_update_custom_gnupg_install_path_label( use_custom_gnupg_install_path ? Qt::Checked : Qt::Unchecked); + + this->slot_set_restart_needed(kNonRestartCode); } void GnuPGControllerDialog::apply_settings() { @@ -341,11 +335,12 @@ void GnuPGControllerDialog::apply_settings() { ui_->restartGpgAgentOnStartCheckBox->isChecked()); } -int GnuPGControllerDialog::get_restart_needed() const { +auto GnuPGControllerDialog::get_restart_needed() const -> int { return this->restart_needed_; } void GnuPGControllerDialog::slot_set_restart_needed(int mode) { + GF_UI_LOG_INFO("announce restart needed, mode: {}", mode); this->restart_needed_ = mode; } |