fix(cpn): global customisable switch type has no group (#7326)
This commit is contained in:
@@ -296,6 +296,10 @@ void FunctionSwitchesPanel::on_configCurrentIndexChanged(int index)
|
||||
if ((config == Board::SWITCH_NOT_AVAILABLE) || model->getFuncSwitchAlwaysOnGroupForSwitch(sw))
|
||||
model->setFuncSwitchGroup(sw, 0);
|
||||
}
|
||||
if (config == Board::SWITCH_GLOBAL) {
|
||||
model->setFuncSwitchStart(sw, ModelData::FUNC_SWITCH_START_OFF);
|
||||
model->setFuncSwitchGroup(sw, 0);
|
||||
}
|
||||
update();
|
||||
emit modified();
|
||||
emit updateDataModels();
|
||||
|
||||
Reference in New Issue
Block a user