diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-02-11 22:46:00 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-02-11 22:46:00 -0800 |
commit | d877e13e0a83203926bf05ee64d3e9589b750aac (patch) | |
tree | 9cc22257e8b0894e4ce80afac47a7ecfe8461ea4 /qt-mobile/qml/DiveList.qml | |
parent | dbc96b1db39b18efdb0f75223743a5e835dd8d0b (diff) | |
download | subsurface-d877e13e0a83203926bf05ee64d3e9589b750aac.tar.gz |
QML UI: even with valid credentials, don't show empty dive list
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/DiveList.qml')
-rw-r--r-- | qt-mobile/qml/DiveList.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-mobile/qml/DiveList.qml b/qt-mobile/qml/DiveList.qml index a7a7a1e53..403cb6846 100644 --- a/qt-mobile/qml/DiveList.qml +++ b/qt-mobile/qml/DiveList.qml @@ -187,7 +187,7 @@ MobileComponents.Page { ScrollView { id: startPageWrapper anchors.fill: parent - opacity: (credentialStatus == QMLManager.VALID || credentialStatus == QMLManager.VALID_EMAIL) ? 0 : 1 + opacity: (diveListView.count > 0 && (credentialStatus == QMLManager.VALID || credentialStatus == QMLManager.VALID_EMAIL)) ? 0 : 1 visible: opacity > 0 Behavior on opacity { NumberAnimation { duration: MobileComponents.Units.shortDuration } } StartPage { |