From 20e517a7ca904121a008d4e4b340f856e316cbcc Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 25 May 2025 23:41:51 +0200 Subject: [PATCH] notif groups: dont show invisible items --- .../quickshell/modules/common/widgets/NotificationGroup.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/quickshell/modules/common/widgets/NotificationGroup.qml b/.config/quickshell/modules/common/widgets/NotificationGroup.qml index 14f29920..fa425ea9 100644 --- a/.config/quickshell/modules/common/widgets/NotificationGroup.qml +++ b/.config/quickshell/modules/common/widgets/NotificationGroup.qml @@ -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