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:
Dirk Hohndel 2020-03-29 14:56:06 -07:00
parent c233803d4f
commit fbe68a6e07

View file

@ -880,4 +880,14 @@ if you have network connectivity and want to sync your data to cloud storage."),
manager.finishSetup() manager.finishSetup()
manager.appInitialized() manager.appInitialized()
} }
onClosing: {
if (globalDrawer.visible) {
globalDrawer.close()
close.accepted = false
}
if (contextDrawer.visible) {
contextDrawer.close()
close.accepted = false
}
}
} }