Skip to content

Commit

Permalink
Do not retry autoupdate after failures. Show a MessageBox and disable…
Browse files Browse the repository at this point in the history
… autoupdates.
  • Loading branch information
psieg committed Jan 19, 2019
1 parent e9e6e2f commit 82934ee
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Software/src/SettingsWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,11 +503,14 @@ void SettingsWindow::onPostInit() {
if (Settings::getAutoUpdatingVersion() != VERSION_STR) {
m_trayIcon->showMessage(tr("Prismatik was updated"), tr("Successfully updated to version %1.").arg(VERSION_STR));
} else {
m_trayIcon->showMessage(
tr("Prismatik update failed"),
tr("There was a problem installing the update. You are still on version %1.").arg(VERSION_STR),
QSystemTrayIcon::Critical);
QMessageBox::critical(
this,
tr("Prismatik automatic update failed"),
tr("There was a problem when trying to automatically update Prismatik to the latest version.\n")
+ tr("You are still on version %1.\n").arg(VERSION_STR)
+ tr("Installing updates automatically was disabled."));
updateJustFailed = true;
ui->checkBox_installUpdates->setChecked(false);
}
Settings::setAutoUpdatingVersion("");
}
Expand Down

0 comments on commit 82934ee

Please sign in to comment.