From 8cd1abb7f7d8c6c36da30590168fb4114bb9509f Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 6 Oct 2019 14:15:34 -0700 Subject: 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 --- mobile-widgets/qml/main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mobile-widgets/qml') 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) } -- cgit v1.2.3-70-g09d2