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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user