From 2e07e9345f7cdc2f0edd849b68f43bdce0e6b8b3 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 29 Mar 2020 12:53:01 -0700 Subject: 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 --- mobile-widgets/qml/DiveList.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mobile-widgets/qml') 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 { -- cgit v1.2.3-70-g09d2