From 9b6ec6485372110184035f7c1db3e7e14a7250af Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 21 Oct 2019 17:16:49 -0400 Subject: Mobile: simple message and busy spinner while storing downloaded dives Due to some recent changes processing the downloaded dives and re-displaying the dive list can take quite a while. So show a small message and the busy spinner to warn the user. Signed-off-by: Dirk Hohndel --- mobile-widgets/qml/DownloadFromDiveComputer.qml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'mobile-widgets/qml/DownloadFromDiveComputer.qml') diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml index 4c43d7b24..da5d261bf 100644 --- a/mobile-widgets/qml/DownloadFromDiveComputer.qml +++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml @@ -366,7 +366,12 @@ Kirigami.Page { } } } - + Controls.Label { + text: qsTr("Please wait while we record these dives...") + Layout.fillWidth: true + visible: acceptButton.busy + leftPadding: Kirigami.Units.gridUnit * 3 // trust me - that looks better + } RowLayout { id: bottomButtons Controls.Label { @@ -375,10 +380,13 @@ Kirigami.Page { } SsrfButton { id: acceptButton + property bool busy: false enabled: divesDownloaded text: qsTr("Accept") bottomPadding: Kirigami.Units.gridUnit / 2 onClicked: { + busy = true + rootItem.showBusy() manager.appendTextToLog("Save downloaded dives that were selected") importModel.recordDives() manager.saveChangesLocal() @@ -386,6 +394,8 @@ Kirigami.Page { manager.refreshDiveList() pageStack.pop(); download.text = qsTr("Download") + busy = false + rootItem.hideBusy() divesDownloaded = false } } -- cgit v1.2.3-70-g09d2