Auto Close notification_center when notif count is 0
This commit is contained in:
1 parent
67bc5b8251
commit
fc1331cd74
1 file changed
+4
@@ -827,6 +827,10 @@ class NotificationCenter(Window):
|
|||||||
self.clear_all_button.set_visible(current_count > 0)
|
self.clear_all_button.set_visible(current_count > 0)
|
||||||
self.scrolled.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, *_):
|
def clear_all_notifications(self, *_):
|
||||||
# Clear all groups
|
# Clear all groups
|
||||||
self.notification_groups.clear()
|
self.notification_groups.clear()
|
||||||
|
|||||||
Reference in new issue
Block a user