ui: fixes in update checker ui

* init updatecheck ui with "checking for update..." to counter the effect of the timer start delay
* removed message box telling the user "everything is ok" after manual (forced) update check
This commit is contained in:
mlangkabel
2017-10-13 12:03:36 +02:00
parent cfb690b035
commit 1d9b322e3e
2 changed files with 2 additions and 10 deletions
@@ -28,6 +28,8 @@ QtUpdateCheckerWidget::QtUpdateCheckerWidget(QWidget* parent)
{
if (QtUpdateChecker::needsAutomaticCheck())
{
m_button->setText("checking for update...");
m_button->setEnabled(false);
QTimer::singleShot(250,
[this]()
{
@@ -156,16 +156,6 @@ void QtUpdateChecker::check(bool force, std::function<void(Result)> callback)
QDesktopServices::openUrl(QUrl(url, QUrl::TolerantMode));
}
}
else if (force)
{
QMessageBox msgBox;
msgBox.setText("Update Check");
msgBox.setInformativeText(
("Sourcetrial " + Version::getApplicationVersion().toDisplayString() + " is still up-to-date.").c_str());
msgBox.setStandardButtons(QMessageBox::Ok);
msgBox.setDefaultButton(QMessageBox::Ok);
msgBox.exec();
}
}
while (false);