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