Commit 4cebee66 authored by azubieta's avatar azubieta

Merge branch 'add_appupdate_ws_command' into 'master'

Restore 'later' button visibility

See merge request !10
parents aa031688 0bf9d111
Pipeline #1067 passed with stage
in 8 minutes and 5 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