diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-10-06 14:15:34 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-10-13 11:32:27 -0700 |
commit | 8cd1abb7f7d8c6c36da30590168fb4114bb9509f (patch) | |
tree | 4f43bffc7931f9c74bad4bb632d5a7fe41ae490a | |
parent | e855dde9652143921147121c12bfaa44f352084a (diff) | |
download | subsurface-8cd1abb7f7d8c6c36da30590168fb4114bb9509f.tar.gz |
Mobile: keep existing page stack when showing map
There doesn't appear to be a reason to pop all of the existing pages from the stack.
Just on principle, only close the drawer if it was open.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | mobile-widgets/qml/main.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index c44143fe1..b90ebac15 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -85,8 +85,8 @@ Kirigami.ApplicationWindow { } function showMap() { - globalDrawer.close() - returnTopPage() + if (globalDrawer.drawerOpen) + globalDrawer.close() pageStack.push(mapPage) } |