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>
This commit is contained in:
Dirk Hohndel 2019-10-06 14:15:34 -07:00
parent e855dde965
commit 8cd1abb7f7

View file

@ -85,8 +85,8 @@ Kirigami.ApplicationWindow {
}
function showMap() {
globalDrawer.close()
returnTopPage()
if (globalDrawer.drawerOpen)
globalDrawer.close()
pageStack.push(mapPage)
}