From 2f77037147a7609418c570c28ed02f0c1d31733f Mon Sep 17 00:00:00 2001 From: Tasuku Suzuki Date: Tue, 20 Dec 2016 17:26:35 +0900 Subject: Move back to initial list when the app is hidden Change-Id: I7c8b4978e96dc2366bf07d07221c44806fb9cb73 Signed-off-by: Tasuku Suzuki --- app/Settings.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Settings.qml b/app/Settings.qml index 42fed66..4fcda79 100644 --- a/app/Settings.qml +++ b/app/Settings.qml @@ -26,6 +26,11 @@ import 'example' ApplicationWindow { id: root + onVisibleChanged: { + if (!visible) + stack.pop(settings) + } + StackView { id: stack anchors.fill: parent -- cgit 1.2.3-korg