From 324b2daf65b42ceb63f711f7cf51c039bb0225c4 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Thu, 28 Jul 2022 13:13:28 -0700 Subject: [PATCH] notifications: Loop, don't handle only one notification I guess this was broken in some previous refactoring... --- applets/cosmic-applet-notifications/src/notifications.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applets/cosmic-applet-notifications/src/notifications.rs b/applets/cosmic-applet-notifications/src/notifications.rs index 4fded97d..dc44ed52 100644 --- a/applets/cosmic-applet-notifications/src/notifications.rs +++ b/applets/cosmic-applet-notifications/src/notifications.rs @@ -322,7 +322,7 @@ impl Notifications { }; let _ = notifications.inner().connection.set(connection.clone()); - if let Some(event) = receiver.next().await { + while let Some(event) = receiver.next().await { match event { Event::NotificationReceived(id) => { notifications.emit_by_name::<()>("notification-received", &[&id]);