From bed19eb117fe6c4ab8d58c69dc44d46d9ac05e2c Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 2 Sep 2020 15:25:02 -0400 Subject: [PATCH] Play appearAnimation when recycling page --- src/gui/PageLoader.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/PageLoader.qml b/src/gui/PageLoader.qml index ec346b45..127a6009 100644 --- a/src/gui/PageLoader.qml +++ b/src/gui/PageLoader.qml @@ -19,6 +19,7 @@ HLoader { readonly property alias appearAnimation: appearAnimation + signal recycled() signal previousShown(string componentUrl, var properties) function showPage(componentUrl, properties={}) { @@ -33,6 +34,8 @@ HLoader { if (recycle) { for (const [prop, value] of Object.entries(properties)) item[prop] = value + + recycled() } else { pageLoader.setSource(componentUrl, properties) window.uiState.page = componentUrl @@ -65,6 +68,7 @@ HLoader { clip: appearAnimation.running onLoaded: { takeFocus(); appearAnimation.start() } + onRecycled: appearAnimation.start() Component.onCompleted: { if (! py.startupAnyAccountsSaved) {