Commit f3904957 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[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


(cherry picked from commit 67f9d503)
parent 55c390cc
......@@ -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();
}
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment