QML UI: add property to reflect when dive list is shown

This makes it easier to have actions that are only valid in this case.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-03-30 20:38:51 -05:00
parent 13c49276d1
commit 1cf1fa9cac
2 changed files with 3 additions and 0 deletions

View file

@ -214,8 +214,10 @@ MobileComponents.Page {
onVisibleChanged: {
if (visible) {
page.mainAction = page.saveAction
showingDiveList = false
} else {
page.mainAction = null
showingDiveList = true
}
}

View file

@ -15,6 +15,7 @@ MobileComponents.ApplicationWindow {
property int oldStatus: -1
property alias accessingCloud: manager.accessingCloud
property QtObject notification: null
property bool showingDiveList: false
onAccessingCloudChanged: {
if (accessingCloud) {
showPassiveNotification("Accessing Subsurface Cloud Storage", 500000);