fix annoying error

This commit is contained in:
lucy 2026-08-23 22:07:19 +02:00
commit 37fdcd671d

View file

@ -20,8 +20,9 @@ WrapperRectangle {
Timer {
id: dismissTimer
interval: 5000
running: true
repeat: false
onTriggered: root.notification.dismiss()
onTriggered: if (root.notification?.tracked) root.notification.expire()
}
child: WrapperMouseArea {
id: mouseHandler
@ -85,7 +86,7 @@ WrapperRectangle {
root.color = Colors.base01;
}
onClicked: {
root.notification ? root.notification.dismiss() : '';
if (root.notification?.tracked) root.notification.dismiss();
}
}
}