From 0bf9d1117d928e8cfc522abe15582cf5cad64bb2 Mon Sep 17 00:00:00 2001
From: Alexis Lopez Zubieta <contact@azubieta.net>
Date: Thu, 12 Sep 2019 12:03:17 -0500
Subject: [PATCH] Restore 'later' button visibility

---
 app/src/updaters/appupdatedialog.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/app/src/updaters/appupdatedialog.cpp b/app/src/updaters/appupdatedialog.cpp
index 10720ea..ca66182 100644
--- a/app/src/updaters/appupdatedialog.cpp
+++ b/app/src/updaters/appupdatedialog.cpp
@@ -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);
-- 
GitLab