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
@@ -55,9 +55,7 @@
UpdateCompanion::UpdateCompanion(QWidget * parent) :
UpdateInterface(parent)
{
setName(tr("Companion"));
setRepo(QString(GH_REPOS_EDGETX).append("/edgetx"));
setReleasesNightlyName("nightly");
init(CID_Companion, tr("Companion"), QString(GH_REPOS_EDGETX).append("/edgetx"), "nightly");
}
void UpdateCompanion::initAssetSettings()
@@ -65,9 +63,9 @@ void UpdateCompanion::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("installer");
cad.processes((UPDFLG_Common_Asset | UPDFLG_AsyncInstall) & ~UPDFLG_CopyDest);