diff --git a/bec_widgets/widgets/containers/main_window/addons/notification_center/notification_banner.py b/bec_widgets/widgets/containers/main_window/addons/notification_center/notification_banner.py index 385ecc0e..fd386239 100644 --- a/bec_widgets/widgets/containers/main_window/addons/notification_center/notification_banner.py +++ b/bec_widgets/widgets/containers/main_window/addons/notification_center/notification_banner.py @@ -63,7 +63,7 @@ LIGHT_PALETTE = { def _connect_theme_change(slot) -> None: - """Connect *slot* to the available application theme-change signals.""" + """Connect *slot* to the application theme-change signal.""" qapp = QApplication.instance() if qapp is None: return @@ -72,10 +72,6 @@ def _connect_theme_change(slot) -> None: if hasattr(theme, "theme_changed"): theme.theme_changed.connect(slot) - legacy_signal = getattr(qapp, "theme_signal", None) - if hasattr(legacy_signal, "theme_updated"): - legacy_signal.theme_updated.connect(slot) - class NotificationToast(QFrame): """