From 3417546a5d846bab005a4a8d55bac946ced9ff94 Mon Sep 17 00:00:00 2001 From: Benedikt Burger <67148916+BenediktBurger@users.noreply.github.com> Date: Fri, 5 Jul 2024 10:12:26 +0200 Subject: [PATCH] Small bug fixes --- pyleco_extras/gui/data_logger/data/multi_plot_widget.py | 4 ++-- pyleco_extras/gui_utils/base_settings.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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 0a6a406..2be62a2 100644 --- a/pyleco_extras/gui/data_logger/data/multi_plot_widget.py +++ b/pyleco_extras/gui/data_logger/data/multi_plot_widget.py @@ -58,7 +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.triggered.connect(self.show_line_settings) + self.action_show_lines.toggled.connect(self.show_line_settings) def _setup_ui(self): super()._setup_ui() @@ -93,7 +93,7 @@ def _setup_ui(self): self.pbLines.setText("ls") self.pbLines.setToolTip("Show the lines setup.") self.pbLines.setCheckable(True) - self.pbLines.clicked.connect(self.show_line_settings) + self.pbLines.clicked.connect(self.action_show_lines.setChecked) # Connect actions to slots self.pbAutoRange.clicked.connect(self.setAutoRange) diff --git a/pyleco_extras/gui_utils/base_settings.py b/pyleco_extras/gui_utils/base_settings.py index f5267ac..4030eb7 100644 --- a/pyleco_extras/gui_utils/base_settings.py +++ b/pyleco_extras/gui_utils/base_settings.py @@ -24,7 +24,6 @@ class BaseSettings(QtWidgets.QDialog): """ def __init__(self, **kwargs) -> None: - """Initialize the dialog.""" # Use initialization of parent class QDialog. super().__init__(**kwargs)