[gnome-music/wip/jfelder/gtk4-v3: 67/89] notificationspopup: Fix it
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/gtk4-v3: 67/89] notificationspopup: Fix it
- Date: Fri, 4 Feb 2022 04:46:14 +0000 (UTC)
commit ee542cfb5637596ee4fe0883ab53e04147032986
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]