Verified Commit 7043e425 authored by azubieta's avatar azubieta

Add no updates available dialog message

parent cb543c94
Pipeline #1062 passed with stage
in 8 minutes and 47 seconds
......@@ -65,6 +65,20 @@ void AppUpdateDialog::showCompletionMessage()
show();
}
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();
disconnect(ui->doitButton, nullptr, this, nullptr);
connect(ui->doitButton, &QPushButton::released, this, &AppUpdateDialog::accept);
ui->stackedWidget->setCurrentWidget(ui->confirmationPage);
show();
}
void AppUpdateDialog::showProgress(int progress)
{
setWindowTitle(tr("Pling Store Update"));
......
......@@ -35,6 +35,8 @@ public slots:
void showCompletionMessage();
void showNoUpdatesMessage();
void showProgress(int progress);
private:
......
......@@ -42,8 +42,11 @@ void AppUpdater::doUpdateLookUp()
if (updateAvailable) {
qDebug() << "Update available";
emit this->updateAvailable();
} else
updateDialog.hide();
} else {
qDebug() << "No update available";
if (!silentLookup)
updateDialog.showNoUpdatesMessage();
}
});
}
......
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