Verified Commit 0bf9d111 authored by azubieta's avatar azubieta

Restore 'later' button visibility

parent 7043e425
Pipeline #1066 failed with stage
in 1 minute and 16 seconds
......@@ -31,6 +31,7 @@ void AppUpdateDialog::showUpdateConfirmationMessage()
setWindowTitle(tr("Pling Store Update Available"));
ui->confirmationLabel->setText(tr("Do you want to update now to the new Pling Store version now?"));
ui->doitButton->setText("Yes");
ui->latterButton->setVisible(true);
disconnect(ui->doitButton, nullptr, this, nullptr);
connect(ui->doitButton, &QPushButton::released, this, &AppUpdateDialog::updateRequested);
......@@ -44,6 +45,7 @@ void AppUpdateDialog::showErrorMessage(const QString &msg)
setWindowTitle(tr("Pling Store Update Failed"));
ui->confirmationLabel->setText(tr("Do you want to try again?"));
ui->doitButton->setText("Yes");
ui->latterButton->setVisible(true);
disconnect(ui->doitButton, nullptr, this, nullptr);
connect(ui->doitButton, &QPushButton::released, this, &AppUpdateDialog::updateRequested);
......@@ -57,6 +59,7 @@ void AppUpdateDialog::showCompletionMessage()
setWindowTitle(tr("Plign Store Update Completed"));
ui->confirmationLabel->setText(tr("Do you want to open the new version now?"));
ui->doitButton->setText("Yes");
ui->latterButton->setVisible(true);
disconnect(ui->doitButton, nullptr, this, nullptr);
connect(ui->doitButton, &QPushButton::released, this, &AppUpdateDialog::restartRequested);
......@@ -70,7 +73,7 @@ void AppUpdateDialog::showNoUpdatesMessage()
setWindowTitle(tr("Plign Store is up to date"));
ui->confirmationLabel->setText(tr("No updates were found"));
ui->doitButton->setText("Ok");
ui->latterButton->hide();
ui->latterButton->setVisible(false);
disconnect(ui->doitButton, nullptr, this, nullptr);
connect(ui->doitButton, &QPushButton::released, this, &AppUpdateDialog::accept);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment