chore(cpn): Switch from component names to ids (#2602)

* cpn(fix): Switch from component names to ids

* Fix Win compile

* Sound packs list entries should not be editable
This commit is contained in:
Neil Horne
2022-10-27 21:52:05 +10:00
committed by GitHub
parent 56617dc209
commit 6b01a0c673
17 changed files with 441 additions and 350 deletions
+3 -5
View File
@@ -25,9 +25,7 @@
UpdateFirmware::UpdateFirmware(QWidget * parent) :
UpdateInterface(parent)
{
setName(tr("Firmware"));
setRepo(QString(GH_REPOS_EDGETX).append("/edgetx"));
setReleasesNightlyName("nightly");
init(CID_Firmware, tr("Firmware"), QString(GH_REPOS_EDGETX).append("/edgetx"), "nightly");
}
void UpdateFirmware::initAssetSettings()
@@ -35,9 +33,9 @@ void UpdateFirmware::initAssetSettings()
if (!isValidSettingsIndex())
return;
g.component[settingsIndex()].initAllAssets();
g.component[id()].initAllAssets();
ComponentAssetData &cad = g.component[settingsIndex()].asset[0];
ComponentAssetData &cad = g.component[id()].asset[0];
cad.desc("binary");
cad.processes(UPDFLG_Common_Asset | UPDFLG_AsyncInstall);