diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-03-30 20:38:51 -0500 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-03-30 20:38:51 -0500 |
commit | 1cf1fa9cacc24853e3c31419e8640dbd9d025bfb (patch) | |
tree | 97efb5659bec438cc04d030f69ba3628616118ed /qt-mobile | |
parent | 13c49276d1d4892c047a8dfc1a817fee98469736 (diff) | |
download | subsurface-1cf1fa9cacc24853e3c31419e8640dbd9d025bfb.tar.gz |
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>
Diffstat (limited to 'qt-mobile')
-rw-r--r-- | qt-mobile/qml/DiveList.qml | 2 | ||||
-rw-r--r-- | qt-mobile/qml/main.qml | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/qt-mobile/qml/DiveList.qml b/qt-mobile/qml/DiveList.qml index dd4b955b6..b3b82bc27 100644 --- a/qt-mobile/qml/DiveList.qml +++ b/qt-mobile/qml/DiveList.qml @@ -214,8 +214,10 @@ MobileComponents.Page { onVisibleChanged: { if (visible) { page.mainAction = page.saveAction + showingDiveList = false } else { page.mainAction = null + showingDiveList = true } } diff --git a/qt-mobile/qml/main.qml b/qt-mobile/qml/main.qml index 439986dee..e2ceab80a 100644 --- a/qt-mobile/qml/main.qml +++ b/qt-mobile/qml/main.qml @@ -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); |