diff options
author | Robert Tari <robert@tari.in> | 2020-11-13 11:48:58 +0100 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2020-11-13 11:48:58 +0100 |
commit | c007dced6358df8af4b7124f05dfe0324a812ec4 (patch) | |
tree | 54a9ed31d60ef5ec447f8627dd5635687b5f444e /src/service.c | |
parent | 77f01688b310db9d254b3372f3447c56bb9579a4 (diff) | |
download | ayatana-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.c | 5 |
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; } } |