From 67f9d5031bc388cd627e49ece63fc672d814a17d Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Sun, 24 Jan 2021 11:05:30 +0100 Subject: [PATCH] [Notifications] Re-evaluate unread count when a notification is "read" This is when a notification was hovered and thus "acknowledged", which was added after the original `updateCount` implementation. CCBUG: 429862 --- libnotificationmanager/notifications.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libnotificationmanager/notifications.cpp b/libnotificationmanager/notifications.cpp index 19bc7deea..3d5359482 100644 --- a/libnotificationmanager/notifications.cpp +++ b/libnotificationmanager/notifications.cpp @@ -196,7 +196,8 @@ void Notifications::Private::initProxyModels() Q_UNUSED(topLeft); Q_UNUSED(bottomRight); if (roles.isEmpty() || roles.contains(Notifications::UpdatedRole) || roles.contains(Notifications::ExpiredRole) - || roles.contains(Notifications::JobStateRole) || roles.contains(Notifications::PercentageRole)) { + || roles.contains(Notifications::JobStateRole) || roles.contains(Notifications::PercentageRole) + || roles.contains(Notifications::ReadRole)) { updateCount(); } });