summaryrefslogtreecommitdiff
path: root/ui/main_window.py
diff options
context:
space:
mode:
Diffstat (limited to 'ui/main_window.py')
-rw-r--r--ui/main_window.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/main_window.py b/ui/main_window.py
index 616f16d..c258424 100644
--- a/ui/main_window.py
+++ b/ui/main_window.py
@@ -255,7 +255,7 @@ class MainWindow(QMainWindow):
root.addWidget(self._chart, 1)
# ── Control Panel dock ────────────────────────────────────────────
- self._ctrl = ControlPanel(self.registry, processor=self.processor)
+ self._ctrl = ControlPanel(self.registry, processor=self.processor, engine=self.engine)
self._ctrl.setMinimumWidth(200); self._ctrl.setMaximumWidth(340)
self._ctrl._add_demo_widgets()
@@ -306,6 +306,7 @@ class MainWindow(QMainWindow):
def _connect_signals(self):
self.engine.new_data.connect(self.processor.on_raw_batch)
self.processor.processed_data.connect(self._chart.on_new_data)
+ self.engine.channel_unit_changed.connect(self._chart.refresh_pane_unit)
self.engine.log_started.connect(lambda p: self._log_lbl.setText(f"● {p}"))
self.engine.log_stopped.connect(lambda p: self._log_lbl.setText(f"✓ {p}"))