Add trainer mode OFF for NV14

This commit is contained in:
elecpower
2021-11-04 11:29:08 +10:00
committed by Peter Feerick
parent 74ea7812e2
commit fb5d8a30d3
4 changed files with 24 additions and 5 deletions
+4 -1
View File
@@ -225,7 +225,10 @@ ModulePanel::ModulePanel(QWidget * parent, ModelData & model, ModuleData & modul
if (panelFilteredItemModels)
ui->trainerMode->setModel(panelFilteredItemModels->getItemModel(FIM_TRAINERMODE));
ui->trainerMode->setField(model.trainerMode);
connect(ui->trainerMode, SIGNAL(currentDataChanged(int)), this, SLOT(update()));
connect(ui->trainerMode, &AutoComboBox::currentDataChanged, this, [=] () {
update();
emit modified();
});
}
}
else {