diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-03-29 12:53:01 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-30 09:16:55 -0700 |
commit | 2e07e9345f7cdc2f0edd849b68f43bdce0e6b8b3 (patch) | |
tree | ea6f8daed16dfbfe32bf2de00910f4b9cc33cc25 /mobile-widgets/qml/DiveList.qml | |
parent | 4cd7767bec39e236483ed560f44b8eb54dab76c9 (diff) | |
download | subsurface-2e07e9345f7cdc2f0edd849b68f43bdce0e6b8b3.tar.gz |
mobile/dive-list: add indicator that dive list is being processed
This should deal with the rather confusing 'No dive in dive list' shown
while loading and processing the dive list.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DiveList.qml')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 4969b9d06..14522fdd5 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -346,11 +346,15 @@ Kirigami.ScrollablePage { } Controls.Label { + property bool showProcessingText: manager.diveListProcessing anchors.fill: parent horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter - text: diveListModel ? qsTr("No dives in dive list") : qsTr("Please wait, updating the dive list") + text: diveListModel && !showProcessingText ? qsTr("No dives in dive list") : qsTr("Please wait, updating the dive list") visible: diveListView.visible && diveListView.count === 0 + onShowProcessingTextChanged: { + manager.appendTextToLog("============diveListProcessing is " + showProcessingText) + } } Rectangle { |