Invoke interactive update mode if any updates found on startup

This commit is contained in:
elecpower
2022-09-06 09:29:41 +10:00
committed by Peter Feerick
parent 19db99c4c2
commit 38749d713d
3 changed files with 2 additions and 39 deletions
+1 -10
View File
@@ -71,16 +71,7 @@ void Updates::autoUpdates()
if (QMessageBox::question(parentWidget(), CPN_STR_APP_NAME % ": " % tr("Checking for Updates"),
tr("Updates available for:\n %1\n\nUpdate now?").arg(list.join("\n ")),
(QMessageBox::Yes | QMessageBox::No), QMessageBox::No) == QMessageBox::Yes) {
factories->resetAllRunEnvironments();
if (!factories->autoUpdate()) {
QMessageBox::warning(this, CPN_STR_APP_NAME, tr("Updates finished with errors"));
}
else {
QMessageBox::information(this, CPN_STR_APP_NAME, tr("Updates finished successfully"));
checkRunSDSync();
}
manualUpdates();
}
}