From 3eb263e6931457fb4855c14fb969c0d792e9ffb1 Mon Sep 17 00:00:00 2001 From: Benedikt Burger <67148916+BenediktBurger@users.noreply.github.com> Date: Tue, 9 Jul 2024 15:58:27 +0200 Subject: [PATCH] Fix bug that lines setup is active, but action not. Closes #11 --- pyleco_extras/gui/data_logger/data/multi_plot_widget.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyleco_extras/gui/data_logger/data/multi_plot_widget.py b/pyleco_extras/gui/data_logger/data/multi_plot_widget.py index 2be62a2..d1a8e7c 100644 --- a/pyleco_extras/gui/data_logger/data/multi_plot_widget.py +++ b/pyleco_extras/gui/data_logger/data/multi_plot_widget.py @@ -58,6 +58,7 @@ def _setup_actions(self): self.action_show_lines.setIconText("ls") self.action_show_lines.setToolTip("Show the lines setup.") self.action_show_lines.setCheckable(True) + self.action_show_lines.setChecked(True) self.action_show_lines.toggled.connect(self.show_line_settings) def _setup_ui(self): @@ -93,6 +94,7 @@ def _setup_ui(self): self.pbLines.setText("ls") self.pbLines.setToolTip("Show the lines setup.") self.pbLines.setCheckable(True) + self.pbLines.setChecked(True) self.pbLines.clicked.connect(self.action_show_lines.setChecked) # Connect actions to slots