Commit aa031688 authored by azubieta's avatar azubieta

Merge branch 'add_appupdate_ws_command' into 'master'

Add no updates available dialog message

See merge request !9
parents cb543c94 7043e425
Pipeline #1064 passed with stage
in 8 minutes and 9 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