diff options
Diffstat (limited to 'mobile-widgets/qml/main.qml')
-rw-r--r-- | mobile-widgets/qml/main.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index a31604a12..2ac521ec4 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -103,7 +103,16 @@ Kirigami.ApplicationWindow { pageStack.push(mapPage) else pageStack.currentIndex = i + } + function showDiveList() { + if (globalDrawer.drawerOpen) + globalDrawer.close() + var i=pageIndex(diveList) + if (i === -1) + pageStack.push(diveList) + else + pageStack.currentIndex = i } function pageIndex(pageToFind) { |