Remove unnessarily duplicated parameter tree

Huge source of confusion and easy bugs!
This commit is contained in:
atse 2024-07-18 15:50:02 +08:00
parent fad9008707
commit 97c5f2a201

View File

@ -65,14 +65,12 @@ class CtrlPanel(QObject):
self.trees_ui = trees_ui
self.NUM_CHANNELS = len(trees_ui)
self.THERMOSTAT_PARAMETERS = [param_tree for i in range(self.NUM_CHANNELS)]
self.params = [
Parameter.create(
name=f"Thermostat Channel {ch} Parameters",
type="group",
value=ch,
children=self.THERMOSTAT_PARAMETERS[ch],
children=param_tree,
)
for ch in range(self.NUM_CHANNELS)
]