aboutsummaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2020-11-13 11:48:58 +0100
committerRobert Tari <robert@tari.in>2020-11-13 11:48:58 +0100
commitc007dced6358df8af4b7124f05dfe0324a812ec4 (patch)
tree54a9ed31d60ef5ec447f8627dd5635687b5f444e /src/service.c
parent77f01688b310db9d254b3372f3447c56bb9579a4 (diff)
downloadayatana-indicator-notifications-c007dced6358df8af4b7124f05dfe0324a812ec4.tar.gz
ayatana-indicator-notifications-c007dced6358df8af4b7124f05dfe0324a812ec4.tar.bz2
ayatana-indicator-notifications-c007dced6358df8af4b7124f05dfe0324a812ec4.zip
Change the icon after the last notification has been removed
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index 2de2613..15afa5f 100644
--- a/src/service.c
+++ b/src/service.c
@@ -496,6 +496,11 @@ static void onRemoveNotification(GSimpleAction *a, GVariant *param, gpointer use
updateClearItem(self);
+ if (self->priv->lVisibleItems == NULL)
+ {
+ setUnread(self, FALSE);
+ }
+
break;
}
}