Delay initialisation of fw flavour and language until update process runs

This commit is contained in:
elecpower
2022-09-06 09:29:41 +10:00
committed by Peter Feerick
parent 887902bf4f
commit 443f4f349a
5 changed files with 50 additions and 45 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ UpdateFirmware::UpdateFirmware(QWidget * parent) :
ap.flags = dfltParams->data.flags | UPDFLG_CopyFiles;
ap.destSubDir = "FIRMWARE";
ap.copyFilterType = UpdateParameters::UFT_Expression;
ap.copyFilter = QString("^%1-.*\\.bin$").arg(fwFlavour);
ap.copyFilter = QString("^%FWFLAVOUR%-.*\\.bin$");
}
bool UpdateFirmware::asyncInstall()