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