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.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/main_window.py b/ui/main_window.py
index 5078a60..ebc7463 100644
--- a/ui/main_window.py
+++ b/ui/main_window.py
@@ -352,9 +352,10 @@ class MainWindow(QMainWindow):
self._chart._cfg, self)
self._win_plot.layout_applied.connect(self._chart.apply_layout)
self._win_plot.closed.connect(lambda: self._btn_plot.setChecked(False))
+ self._win_plot.refresh_channels() # sync any derived channels
else:
self._win_plot.cfg = self._chart._cfg
- self._win_plot._populate()
+ self._win_plot.refresh_channels()
self._show_win(self._win_plot, "below")
def _open_settings(self):
@@ -507,7 +508,10 @@ class MainWindow(QMainWindow):
def _on_derived_changed(self):
self._chart.refresh()
- if self._win_plot: self._win_plot.refresh_channels()
+ if self._win_plot:
+ # Ensure plot window works on current chart cfg, then sync derived panes
+ self._win_plot.cfg = self._chart._cfg
+ self._win_plot.refresh_channels()
# ── Run / Log ─────────────────────────────────────────────────────────