mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
mobile UI: don't exit when using back button to close drawers
An Android user might reasonably assume that they can use the back button to close the global or context drawers. So act accordingly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c233803d4f
commit
fbe68a6e07
1 changed files with 10 additions and 0 deletions
|
@ -880,4 +880,14 @@ if you have network connectivity and want to sync your data to cloud storage."),
|
|||
manager.finishSetup()
|
||||
manager.appInitialized()
|
||||
}
|
||||
onClosing: {
|
||||
if (globalDrawer.visible) {
|
||||
globalDrawer.close()
|
||||
close.accepted = false
|
||||
}
|
||||
if (contextDrawer.visible) {
|
||||
contextDrawer.close()
|
||||
close.accepted = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue