[gnome-music/wip/jfelder/gtk4-v3: 136/145] notificationspopup: Fix it
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/gtk4-v3: 136/145] notificationspopup: Fix it
- Date: Thu, 3 Feb 2022 20:43:09 +0000 (UTC)
commit a9cc642e1ba70a502f2d844932647e7b64e25c79
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]