diff --git a/bec_widgets/utils/bec_widget.py b/bec_widgets/utils/bec_widget.py index 67a4c5e9..1db6fed9 100644 --- a/bec_widgets/utils/bec_widget.py +++ b/bec_widgets/utils/bec_widget.py @@ -72,8 +72,8 @@ class BECWidget(BECConnector): if hasattr(qapp, "theme"): qapp.theme.theme_changed.connect(self._update_theme) - @SafeSlot(str, verify_sender=True) - @SafeSlot(verify_sender=True) + # @SafeSlot(str, verify_sender=True) + # @SafeSlot(verify_sender=True) def _update_theme(self, theme: str | None = None): """Update the theme.""" if theme is None: diff --git a/tests/unit_tests/test_color_utils.py b/tests/unit_tests/test_color_utils.py index 7628e8ae..69b82c5d 100644 --- a/tests/unit_tests/test_color_utils.py +++ b/tests/unit_tests/test_color_utils.py @@ -147,6 +147,7 @@ class ExamplePlotWidget(BECWidget, QWidget): def test_apply_theme(qtbot, mocked_client): widget = create_widget(qtbot, ExamplePlotWidget, client=mocked_client) + apply_theme("dark") # Get the default state of dark theme