fix notification dismiss: skip slideIn for already-visible popups
This commit is contained in:
parent
8fb5e7cbe6
commit
ce62d8f9cd
1 changed files with 10 additions and 1 deletions
|
|
@ -31,6 +31,8 @@ PanelWindow {
|
|||
width: parent.width
|
||||
spacing: 6
|
||||
|
||||
property var _knownIds: ({})
|
||||
|
||||
Repeater {
|
||||
model: M.NotifService.popups.slice(0, 4)
|
||||
|
||||
|
|
@ -50,8 +52,15 @@ PanelWindow {
|
|||
|
||||
property bool _entered: false
|
||||
Component.onCompleted: {
|
||||
if (popupCol._knownIds[modelData.id]) {
|
||||
opacity = 1;
|
||||
x = 0;
|
||||
_heightScale = 1;
|
||||
} else {
|
||||
popupCol._knownIds[modelData.id] = true;
|
||||
slideIn.start();
|
||||
}
|
||||
_entered = true;
|
||||
slideIn.start();
|
||||
}
|
||||
|
||||
Behavior on y {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue