diff options
| author | Soramane <61896496+soramanew@users.noreply.github.com> | 2025-07-16 17:38:00 +1000 |
|---|---|---|
| committer | Soramane <61896496+soramanew@users.noreply.github.com> | 2025-07-16 17:38:00 +1000 |
| commit | 38e9e243901c2fffc9f2b6f78df8bbf18643ed3f (patch) | |
| tree | c65276a8ffa5dff46a6089801aa173910f3c342e /modules | |
| parent | notifs: add close button (diff) | |
| download | caelestia-shell-38e9e243901c2fffc9f2b6f78df8bbf18643ed3f.tar.gz caelestia-shell-38e9e243901c2fffc9f2b6f78df8bbf18643ed3f.tar.bz2 caelestia-shell-38e9e243901c2fffc9f2b6f78df8bbf18643ed3f.zip | |
notifs: use app2unit for links
also make links only reactive when expanded
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/notifications/Notification.qml | 7 |
1 files changed, 5 insertions, 2 deletions
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 } |