From 38e9e243901c2fffc9f2b6f78df8bbf18643ed3f Mon Sep 17 00:00:00 2001 From: Soramane <61896496+soramanew@users.noreply.github.com> Date: Wed, 16 Jul 2025 17:38:00 +1000 Subject: notifs: use app2unit for links also make links only reactive when expanded --- modules/notifications/Notification.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml index 6022e9d..85d81d9 100644 --- a/modules/notifications/Notification.qml +++ b/modules/notifications/Notification.qml @@ -37,7 +37,7 @@ StyledRect { anchors.fill: parent hoverEnabled: true - cursorShape: body.hoveredLink ? Qt.PointingHandCursor : pressed ? Qt.ClosedHandCursor : undefined + cursorShape: root.expanded && body.hoveredLink ? Qt.PointingHandCursor : pressed ? Qt.ClosedHandCursor : undefined acceptedButtons: Qt.LeftButton | Qt.MiddleButton preventStealing: true @@ -387,7 +387,10 @@ StyledRect { wrapMode: Text.WrapAtWordBoundaryOrAnywhere onLinkActivated: link => { - Qt.openUrlExternally(link); + if (!root.expanded) + return; + + Quickshell.execDetached(["app2unit", "-O", "--", link]); root.modelData.notification.dismiss(); // TODO: change back to popup when notif dock impled } -- cgit v1.2.3-freya