QML UI: try to clean up UI before showing notification

This way we shouldn't have a drawer or other changes to the UI prevent the
user from seeing / interacting with the notification.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-03-11 08:05:29 -08:00
parent c4fb42f8ad
commit 5a83226aa8
2 changed files with 7 additions and 5 deletions

View file

@ -103,6 +103,7 @@ MobileComponents.ApplicationWindow {
Action {
text: "Refresh"
onTriggered: {
globalDrawer.close()
detailsWindow.endEditMode()
manager.loadDives();
}
@ -110,6 +111,7 @@ MobileComponents.ApplicationWindow {
Action {
text: "Upload to cloud"
onTriggered: {
globalDrawer.close()
detailsWindow.endEditMode()
manager.saveChanges();
}