From eb34cefddae91a3b56e8c6174190277dd9c7302c Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sat, 23 Jan 2021 01:25:00 +0200 Subject: [PATCH] release animations when user is removing tasks --for example when the user is hovering a zoomed task and chooses to remove Latte Tasks applet from its context menu --- plasmoid/package/contents/ui/task/Wrapper.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plasmoid/package/contents/ui/task/Wrapper.qml b/plasmoid/package/contents/ui/task/Wrapper.qml index 9f1ad390f..521b25413 100644 --- a/plasmoid/package/contents/ui/task/Wrapper.qml +++ b/plasmoid/package/contents/ui/task/Wrapper.qml @@ -188,6 +188,17 @@ Item{ } } + Connections { + target: taskItem + onVisibleChanged: { + if (!taskItem.visible) { + //! is mostly used when the user destroys tasks applet from the context menu and both + //! axis animations should be released in that case + wrapper.sendEndOfNeedBothAxisAnimation(); + } + } + } + Component.onCompleted: { if (!LatteCore.WindowSystem.compositingActive) { opacity = 1;