1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-29 05:47:23 +03:00

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
This commit is contained in:
Michail Vourlakos 2019-07-12 23:59:09 +03:00
parent 7fe42921a8
commit 30c5a00835

View File

@ -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;