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:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user