From fc1331cd74468ef5d5a710787130989a2651e669 Mon Sep 17 00:00:00 2001 From: tr1x_em Date: Mon, 11 Aug 2025 16:07:34 +0530 Subject: [PATCH] Auto Close notification_center when notif count is 0 --- modules/notification/notification_center.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/notification/notification_center.py b/modules/notification/notification_center.py index c70bdbc..eb4e660 100644 --- a/modules/notification/notification_center.py +++ b/modules/notification/notification_center.py @@ -826,6 +826,10 @@ class NotificationCenter(Window): # No notifications label removed - only update clear button and scrolled visibility self.clear_all_button.set_visible(current_count > 0) self.scrolled.set_visible(current_count > 0) + + # Auto-close notification center when no notifications remain + if current_count == 0 and hasattr(self, "mousecapture"): + self.mousecapture.hide_child_window() def clear_all_notifications(self, *_): # Clear all groups