From cd10dbd8a90d53a62981f72d7e7f37a3c798ea57 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 23 Jun 2025 15:38:28 +1000 Subject: notifs: dismiss notif on swipe Fixes #141 --- modules/notifications/Notification.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/notifications') diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml index 1f21fc4..fb8d864 100644 --- a/modules/notifications/Notification.qml +++ b/modules/notifications/Notification.qml @@ -55,7 +55,7 @@ StyledRect { if (Math.abs(root.x) < Config.notifs.sizes.width * Config.notifs.clearThreshold) root.x = 0; else - root.modelData.popup = false; + root.modelData.notification.dismiss(); // TODO: change back to popup when notif dock impled } onPositionChanged: event => { if (pressed) { @@ -424,7 +424,7 @@ StyledRect { onLinkActivated: link => { Qt.openUrlExternally(link); - root.modelData.popup = false; + root.modelData.notification.dismiss(); // TODO: change back to popup when notif dock impled } opacity: root.expanded ? 1 : 0 -- cgit v1.2.3-freya