diff --git a/applets/notifications/package/contents/ui/CompactRepresentation.qml b/applets/notifications/package/contents/ui/CompactRepresentation.qml --- a/applets/notifications/package/contents/ui/CompactRepresentation.qml +++ b/applets/notifications/package/contents/ui/CompactRepresentation.qml @@ -107,17 +107,6 @@ visible: false running: visible } - - PlasmaCore.SvgItem { - id: notificationActiveItem - anchors.fill: parent - - svg: notificationSvg - elementId: "notification-active" - opacity: 0 - scale: 2 - visible: opacity > 0 - } } PlasmaCore.IconItem { @@ -149,14 +138,6 @@ visible: true } }, - State { // active notification - when: compactRoot.activeCount > 0 - PropertyChanges { - target: notificationActiveItem - scale: 1 - opacity: 1 - } - }, State { // do not disturb when: compactRoot.inhibited PropertyChanges { @@ -187,7 +168,7 @@ Transition { to: "*" // any state NumberAnimation { - targets: [notificationIcon, notificationActiveItem, dndIcon] + targets: [notificationIcon, dndIcon] properties: "opacity,scale" duration: units.longDuration easing.type: Easing.InOutQuad diff --git a/libnotificationmanager/notifications.cpp b/libnotificationmanager/notifications.cpp --- a/libnotificationmanager/notifications.cpp +++ b/libnotificationmanager/notifications.cpp @@ -276,7 +276,7 @@ // TODO Jobs could also be unread? if (notificationsModel) { - if (date > notificationsModel->lastRead()) { + if (!active && date > notificationsModel->lastRead()) { ++unread; } }