QML UI: even with valid credentials, don't show empty dive list

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-02-11 22:46:00 -08:00
parent dbc96b1db3
commit d877e13e0a

View file

@ -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 {