mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-11 22:25:53 +08:00
#5629 Save activation dialog seen state on reject
This commit is contained in:
@@ -68,6 +68,8 @@ void ActivationDialog::reject()
|
||||
CancelActivationDialog cancelActivationDialog(this);
|
||||
if (QDialog::Accepted == cancelActivationDialog.exec()) {
|
||||
notifyActivation("skip:unknown");
|
||||
m_appConfig->activationHasRun(true);
|
||||
m_appConfig->saveSettings();
|
||||
QDialog::reject();
|
||||
}
|
||||
}
|
||||
@@ -102,6 +104,9 @@ void ActivationDialog::accept()
|
||||
QString error;
|
||||
int edition = Unregistered;
|
||||
|
||||
m_appConfig->activationHasRun(true);
|
||||
m_appConfig->saveSettings();
|
||||
|
||||
try {
|
||||
if (ui->m_pRadioButtonActivate->isChecked()) {
|
||||
WebClient webClient;
|
||||
@@ -152,7 +157,6 @@ void ActivationDialog::accept()
|
||||
}
|
||||
|
||||
m_appConfig->setEdition(edition);
|
||||
m_appConfig->activationHasRun(true);
|
||||
m_appConfig->saveSettings();
|
||||
|
||||
message.information (this, "Activated!",
|
||||
|
||||
Reference in New Issue
Block a user