Check if any components flagged as updateable

This commit is contained in:
elecpower
2022-09-06 09:29:41 +10:00
committed by Peter Feerick
parent d9237cc320
commit 2578c759ce
4 changed files with 46 additions and 35 deletions
+5
View File
@@ -86,6 +86,11 @@ void Updates::autoUpdates()
void Updates::manualUpdates()
{
if (factories->sortedComponentsList(true).isEmpty()) {
QMessageBox::warning(this, CPN_STR_APP_NAME, tr("No components have been flagged to check in Update Settings!"));
return;
}
factories->resetAllRunEnvironments();
UpdatesDialog *dlg = new UpdatesDialog(this, factories);