From 2e3f3a9f3c3af389a3b800514ef5dec44fe00e4c Mon Sep 17 00:00:00 2001 From: Damocles Date: Fri, 17 Apr 2026 10:50:46 +0200 Subject: [PATCH] notifcard: filter default action identifier and empty action labels --- modules/NotifCard.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/NotifCard.qml b/modules/NotifCard.qml index e908572..27797c8 100644 --- a/modules/NotifCard.qml +++ b/modules/NotifCard.qml @@ -198,13 +198,14 @@ Item { visible: text !== "" } - // Action buttons + // Action buttons — filter "default" (click-notification convention) and empty labels Row { spacing: 6 - visible: !!(root.notif?.actions?.length) + visible: _actionRepeater.count > 0 Repeater { - model: root.notif?.actions ?? [] + id: _actionRepeater + model: (root.notif?.actions ?? []).filter(a => a.text && a.identifier !== "default") delegate: Rectangle { required property var modelData width: _actText.implicitWidth + 12