notifs: dismiss notif on swipe

Fixes #141
This commit is contained in:
2 * r + 2 * t 2025-06-23 15:38:28 +10:00
parent 6b14d03fef
commit cd10dbd8a9

View file

@ -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