Skip to content

Commit

Permalink
fix: unchecking some check boxes at gnupg controller will not restart
Browse files Browse the repository at this point in the history
  • Loading branch information
saturneric committed Aug 5, 2024
1 parent 72030d9 commit 52be475
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/ui/dialog/controller/GnuPGControllerDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,18 @@ GnuPGControllerDialog::GnuPGControllerDialog(QWidget* parent)
this->slot_set_restart_needed(kDeepRestartCode);
});

connect(ui_->keyDatabaseUseCustomCheckBox, &QCheckBox::stateChanged, this,
[=](int) {
// announce the restart
this->slot_set_restart_needed(kDeepRestartCode);
});

connect(ui_->useCustomGnuPGInstallPathCheckBox, &QCheckBox::stateChanged,
this, [=](int) {
// announce the restart
this->slot_set_restart_needed(kDeepRestartCode);
});

#if defined(__APPLE__) && defined(__MACH__)
// macOS style settings
ui_->buttonBox->setDisabled(true);
Expand Down

0 comments on commit 52be475

Please sign in to comment.