From 30c5a00835d1c2e1a49844c57c5c01dd9a248a12 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos <mvourlakos@gmail.com> Date: Fri, 12 Jul 2019 23:59:09 +0300 Subject: [PATCH] release BothAxis animation on applet destruction --this was noticed when the user was removing an applet through the context menu and at the same time this applet was zoomed. With this patch the parabolic effect behavior returns to normal --- containment/package/contents/ui/applet/AppletItem.qml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/containment/package/contents/ui/applet/AppletItem.qml b/containment/package/contents/ui/applet/AppletItem.qml index 079567747..b064fd698 100644 --- a/containment/package/contents/ui/applet/AppletItem.qml +++ b/containment/package/contents/ui/applet/AppletItem.qml @@ -444,12 +444,18 @@ Item { } Component.onDestruction: { + if (animationWasSent) { + root.slotAnimationsNeedBothAxis(-1); + animationWasSent = false; + } + if (isSeparator){ parabolicManager.setSeparator(previousIndex, -1); } - if (isHidden) + if (isHidden) { parabolicManager.setHidden(previousIndex, -1); + } if(root.latteAppletPos>=0 && root.latteAppletPos === index){ root.latteApplet = null;