From 80b083d6b9905a9e66c3aafff6b8f77a6d3bc05c Mon Sep 17 00:00:00 2001 From: bleakgrey Date: Sun, 22 Apr 2018 13:33:19 +0300 Subject: [PATCH] Update notifications icon when dismissed --- src/Views/NotificationsView.vala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Views/NotificationsView.vala b/src/Views/NotificationsView.vala index 8347cb0..dfcb19a 100644 --- a/src/Views/NotificationsView.vala +++ b/src/Views/NotificationsView.vala @@ -49,8 +49,9 @@ public class Tootle.NotificationsView : Tootle.AbstractView { public virtual void on_remove (Widget widget){ if (!(widget is NotificationWidget)) return; - - //debug ("removed"); + + if (view.get_children ().length () <= 1) + image.icon_name = get_icon (); } public virtual void on_account_changed (Account? account){