fix(cpn): Add GVARs to input sources (#3097)

* fix(cpn): Add gvars to input sources for colorlcd ONLY

* Fix GVs available on all radios

* Move GVs in source list from after telemetry to before
This commit is contained in:
Neil Horne
2023-03-16 17:57:34 +10:00
committed by GitHub
parent 837431430e
commit ddf5fdd906
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -102,9 +102,10 @@ ExpoDialog::ExpoDialog(QWidget *parent, ModelData & model, ExpoData *expoData, G
if (firmware->getCapability(VirtualInputs)) {
ui->inputName->setMaxLength(firmware->getCapability(InputsLength));
int flags = RawSource::InputSourceGroups & ~RawSource::NoneGroup & ~RawSource::InputsGroup;
flags |= RawSource::GVarsGroup | RawSource::TelemGroup;
id = dialogFilteredItemModels->registerItemModel(new FilteredItemModel(sharedItemModels->getItemModel(AbstractItemModel::IMID_RawSource),
(RawSource::InputSourceGroups & ~RawSource::NoneGroup & ~RawSource::InputsGroup) | RawSource::TelemGroup),
"RawSource");
flags), "RawSource");
ui->sourceCB->setModel(dialogFilteredItemModels->getItemModel(id));
ui->sourceCB->setCurrentIndex(ui->sourceCB->findData(ed->srcRaw.toValue()));
ui->inputName->setValidator(new QRegExpValidator(rx, this));