[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
wilder-5.22
Kai Uwe Broulik 5 years ago
parent a2991c6443
commit 67f9d5031b
  1. 3
      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();
}
});

Loading…
Cancel
Save