[PATCH] Ensure the hide animation is stopped and restarted
Dirk Hohndel
dirk at hohndel.org
Sun Mar 13 18:59:46 UTC 2016
Just like commit c8311b80d0a5 ("ensure the animation is stopped and
restarted") makes sure that the animation is run when showing the passive
notification, we need to do the same when hiding the animation, or a too
quick succession of show() and then hide() breaks things.
Signed-off-by: Dirk Hohndel <dirk at hohndel.org>
---
components/mobilecomponents/qml/private/PassiveNotification.qml | 1 +
1 file changed, 1 insertion(+)
diff --git a/components/mobilecomponents/qml/private/PassiveNotification.qml b/components/mobilecomponents/qml/private/PassiveNotification.qml
index f96f36d4bede..3a01953af7e7 100644
--- a/components/mobilecomponents/qml/private/PassiveNotification.qml
+++ b/components/mobilecomponents/qml/private/PassiveNotification.qml
@@ -59,6 +59,7 @@ MouseArea {
}
function hideNotification() {
+ appearAnimation.running = false;
appearAnimation.appear = false;
appearAnimation.running = true;
}
--
2.7.2
More information about the Plasma-devel
mailing list