notif groups: dont show invisible items

This commit is contained in:
end-4 2025-05-25 23:41:51 +02:00
parent dbe2a922e3
commit 20e517a7ca

View file

@ -213,8 +213,8 @@ Item { // Notification group area
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
}
model: ScriptModel {
// values: root.expanded ? root.notifications : root.notifications.slice(0, 2)
values: root.notifications.slice().reverse()
values: root.expanded ? root.notifications.slice().reverse() :
root.notifications.slice().reverse().slice(0, 2)
}
delegate: NotificationItem {
required property int index