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 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
|
||||||
if (!appeared) {
|
|
||||||
opacity = 0;
|
|
||||||
height = 0;
|
|
||||||
x = width;
|
|
||||||
// Small delay to ensure contentRow has proper height
|
|
||||||
Timer {
|
Timer {
|
||||||
|
id: appearTimer
|
||||||
interval: 10
|
interval: 10
|
||||||
repeat: false
|
repeat: false
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
appearAnimation.start();
|
appearAnimation.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Component.onCompleted: {
|
||||||
|
if (!appeared) {
|
||||||
|
opacity = 0;
|
||||||
|
height = 0;
|
||||||
|
x = width;
|
||||||
|
// Small delay to ensure contentRow has proper height
|
||||||
|
appearTimer.start();
|
||||||
for (let i = 0; i < notificationModel.count; i++) {
|
for (let i = 0; i < notificationModel.count; i++) {
|
||||||
if (notificationModel.get(i).id === notificationDelegate.id) {
|
if (notificationModel.get(i).id === notificationDelegate.id) {
|
||||||
var oldItem = notificationModel.get(i);
|
var oldItem = notificationModel.get(i);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue