Small fixes for Notification
This commit is contained in:
parent
c7a07127d8
commit
b2fb868cd7
3 changed files with 7 additions and 6 deletions
|
|
@ -45,7 +45,7 @@ QtObject {
|
|||
|
||||
// Auto-hide timer
|
||||
property Timer hideTimer: Timer {
|
||||
interval: 5000 // 5 seconds
|
||||
interval: 8000 // 8 seconds - longer display time
|
||||
repeat: true
|
||||
running: notificationModel.count > 0
|
||||
|
||||
|
|
@ -54,9 +54,9 @@ QtObject {
|
|||
return
|
||||
}
|
||||
|
||||
// Always remove the oldest notification (last in the list)
|
||||
// Remove the oldest notification (last in the list)
|
||||
let oldestNotification = notificationModel.get(notificationModel.count - 1).rawNotification
|
||||
if (oldestNotification && !oldestNotification.transient) {
|
||||
if (oldestNotification) {
|
||||
// Trigger animation signal instead of direct dismiss
|
||||
animateAndRemove(oldestNotification, notificationModel.count - 1)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue