[gnome-music/wip/jfelder/gtk4-v3: 130/200] notificationspopup: Fix it




commit 75ce766b0166804858d43dd1a7fd11f4aa9f3443
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]