From b585a608c7977c5c1918ed992e865309b08fb8f7 Mon Sep 17 00:00:00 2001 From: wyzula-jan Date: Tue, 6 Jan 2026 15:43:43 +0100 Subject: [PATCH] fix(main_window): delete on close --- bec_widgets/widgets/containers/main_window/main_window.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bec_widgets/widgets/containers/main_window/main_window.py b/bec_widgets/widgets/containers/main_window/main_window.py index 34a01875..2878d268 100644 --- a/bec_widgets/widgets/containers/main_window/main_window.py +++ b/bec_widgets/widgets/containers/main_window/main_window.py @@ -50,6 +50,7 @@ class BECMainWindow(BECWidget, QMainWindow): self.app = QApplication.instance() self.status_bar = self.statusBar() self.setWindowTitle(window_title) + self.setAttribute(Qt.WidgetAttribute.WA_DeleteOnClose, True) # Notification Centre overlay self.notification_centre = NotificationCentre(parent=self) # Notification layer