summaryrefslogtreecommitdiff
path: root/modules/notifications/Notification.qml
diff options
context:
space:
mode:
authorSoramane <61896496+soramanew@users.noreply.github.com>2025-07-16 17:38:00 +1000
committerSoramane <61896496+soramanew@users.noreply.github.com>2025-07-16 17:38:00 +1000
commit38e9e243901c2fffc9f2b6f78df8bbf18643ed3f (patch)
treec65276a8ffa5dff46a6089801aa173910f3c342e /modules/notifications/Notification.qml
parentnotifs: add close button (diff)
downloadcaelestia-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 '')
-rw-r--r--modules/notifications/Notification.qml7
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
}