summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@qt.io>2016-12-20 17:26:35 +0900
committerTasuku Suzuki <tasuku.suzuki@qt.io>2016-12-20 17:26:50 +0900
commit2f77037147a7609418c570c28ed02f0c1d31733f (patch)
treee4582df9667338f58d0d5feac255062d37c925f8 /app
parentb70f918d9de814768759a747ba8ba307917804d4 (diff)
Move back to initial list when the app is hidden
Change-Id: I7c8b4978e96dc2366bf07d07221c44806fb9cb73 Signed-off-by: Tasuku Suzuki <tasuku.suzuki@qt.io>
Diffstat (limited to 'app')
-rw-r--r--app/Settings.qml5
1 files changed, 5 insertions, 0 deletions
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