[gnome-music/wip/mschraal/gtk4-v3: 155/192] notificationspopup: Fix it




commit db16efd9e066723e8ba0c7a369f3b5ed1a30cce3
Author: Jean Felder <jfelder src gnome org>
Date:   Thu Feb 3 19:48:39 2022 +0100

    notificationspopup: Fix it

 gnomemusic/widgets/notificationspopup.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnomemusic/widgets/notificationspopup.py b/gnomemusic/widgets/notificationspopup.py
index a4eabf5b4..f18e48b66 100644
--- a/gnomemusic/widgets/notificationspopup.py
+++ b/gnomemusic/widgets/notificationspopup.py
@@ -62,10 +62,10 @@ class NotificationsPopup(Gtk.Revealer):
         deletion is in progress.
         """
         loading_finished = self._loading_notification._counter == 0
-        # no_other_notif = (len(self._box.get_children()) == 1
-        #                   or (len(self._box.get_children()) == 2
-        #                   and notification != self._loading_notification))
-        no_other_notif = True
+        box_children = [child for child in self._box]
+        no_other_notif = (len(box_children) == 1
+                          or (len(box_children) == 2
+                              and notification != self._loading_notification))
         invisible = loading_finished and no_other_notif
 
         if not invisible:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]