Fix NotificationPopup.qml
This commit is contained in:
parent
8a7c3b754c
commit
3148dc62a0
1 changed files with 10 additions and 7 deletions
|
|
@ -340,19 +340,22 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: appearTimer
|
||||
interval: 10
|
||||
repeat: false
|
||||
onTriggered: {
|
||||
appearAnimation.start();
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
if (!appeared) {
|
||||
opacity = 0;
|
||||
height = 0;
|
||||
x = width;
|
||||
// Small delay to ensure contentRow has proper height
|
||||
Timer {
|
||||
interval: 10
|
||||
repeat: false
|
||||
onTriggered: {
|
||||
appearAnimation.start();
|
||||
}
|
||||
}
|
||||
appearTimer.start();
|
||||
for (let i = 0; i < notificationModel.count; i++) {
|
||||
if (notificationModel.get(i).id === notificationDelegate.id) {
|
||||
var oldItem = notificationModel.get(i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue