mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mobile: don't quit on back button in Statistics mode
Fixes #3192 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
2c04a1f297
commit
503d8bd1fc
1 changed files with 9 additions and 0 deletions
|
@ -232,4 +232,13 @@ Kirigami.Page {
|
|||
Component.onCompleted: {
|
||||
statsManager.init(statsView, chartListModel)
|
||||
}
|
||||
onBackRequested: {
|
||||
// if the menu drawer is open, the back button should close it
|
||||
if (globalDrawer.visible) {
|
||||
globalDrawer.close()
|
||||
} else {
|
||||
showDiveList()
|
||||
}
|
||||
event.accepted = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue