summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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
}