fix notification dismiss: skip slideIn for already-visible popups

This commit is contained in:
Damocles 2026-04-13 15:28:31 +02:00
parent 8fb5e7cbe6
commit ce62d8f9cd

View file

@ -31,6 +31,8 @@ PanelWindow {
width: parent.width
spacing: 6
property var _knownIds: ({})
Repeater {
model: M.NotifService.popups.slice(0, 4)
@ -50,9 +52,16 @@ PanelWindow {
property bool _entered: false
Component.onCompleted: {
_entered = true;
if (popupCol._knownIds[modelData.id]) {
opacity = 1;
x = 0;
_heightScale = 1;
} else {
popupCol._knownIds[modelData.id] = true;
slideIn.start();
}
_entered = true;
}
Behavior on y {
enabled: popupItem._entered