From 1cf1fa9cacc24853e3c31419e8640dbd9d025bfb Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 30 Mar 2016 20:38:51 -0500 Subject: 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 --- qt-mobile/qml/DiveList.qml | 2 ++ qt-mobile/qml/main.qml | 1 + 2 files changed, 3 insertions(+) (limited to 'qt-mobile') 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); -- cgit v1.2.3-70-g09d2