fix annoying error
This commit is contained in:
parent
3e9fb9f5d1
commit
37fdcd671d
1 changed files with 3 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue