From dee5ff3238462cbd5696ab98c51c5c4af255607f Mon Sep 17 00:00:00 2001 From: Neil Horne <15316949+elecpower@users.noreply.github.com> Date: Wed, 29 Apr 2026 21:03:30 +1000 Subject: [PATCH] fix(cpn): global customisable switch type has no group (#7326) --- companion/src/modeledit/setup_function_switches.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/companion/src/modeledit/setup_function_switches.cpp b/companion/src/modeledit/setup_function_switches.cpp index 6cd876ab0..4acb34f71 100644 --- a/companion/src/modeledit/setup_function_switches.cpp +++ b/companion/src/modeledit/setup_function_switches.cpp @@ -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();