mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
e855dde965
commit
8cd1abb7f7
1 changed files with 2 additions and 2 deletions
|
@ -85,8 +85,8 @@ Kirigami.ApplicationWindow {
|
|||
}
|
||||
|
||||
function showMap() {
|
||||
globalDrawer.close()
|
||||
returnTopPage()
|
||||
if (globalDrawer.drawerOpen)
|
||||
globalDrawer.close()
|
||||
pageStack.push(mapPage)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue