1
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2026-03-04 16:02:51 +01:00

check removal of safeslot

This commit is contained in:
2025-08-28 15:58:34 +02:00
parent 7f33e4a7a1
commit 7bb8f3a219
2 changed files with 3 additions and 2 deletions

View File

@@ -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:

View File

@@ -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