diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-10-21 17:16:49 -0400 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-10-26 11:38:26 -0700 |
commit | 9b6ec6485372110184035f7c1db3e7e14a7250af (patch) | |
tree | 86bd463d5e35b3221f8698b61ec8e5bcb83fe7fe /mobile-widgets/qml | |
parent | 84920fd65766f52867087ace32ac002793731096 (diff) | |
download | subsurface-9b6ec6485372110184035f7c1db3e7e14a7250af.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r-- | mobile-widgets/qml/DownloadFromDiveComputer.qml | 12 |
1 files changed, 11 insertions, 1 deletions
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 } } |