C2: dismiss state machine, animation guard prevents double-dismiss
This commit is contained in:
parent
88d8842064
commit
176f8a1871
2 changed files with 10 additions and 0 deletions
|
|
@ -242,7 +242,11 @@ PanelWindow {
|
|||
property bool _fullDismiss: false
|
||||
|
||||
function animateDismiss(full) {
|
||||
if (popupItem.modelData.state === "dismissing")
|
||||
return;
|
||||
popupItem.modelData.beginDismiss();
|
||||
_fullDismiss = !!full;
|
||||
slideIn.stop();
|
||||
slideOut.start();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue