aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-12-13 14:39:10 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-13 08:23:27 -0800
commit59f86a06adfaf415aa8a8fe45f9a1e6df5f616a9 (patch)
tree361891520e590a1eaada1bb55e28c27470b8bb1d /mobile-widgets/qml
parent88141fb70d1268bbdd5e25490e9367d91a01b247 (diff)
downloadsubsurface-59f86a06adfaf415aa8a8fe45f9a1e6df5f616a9.tar.gz
mobile: reset Retry button to Download
Reset the Retry button on exit of the Download from divecomputer page. So, it it not reset wehen swiping this page away, or cancelling a running download, but resetting it on accepting downloaded dives. As we do not have real error reporting (from download failures), this all is a little arbitrary. Another "fix" could be, not changing the button text at all. Further notice, this is not specific iOS, but also Android. Fixes: #895 Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/DownloadFromDiveComputer.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml
index eafc22150..5a3f3190e 100644
--- a/mobile-widgets/qml/DownloadFromDiveComputer.qml
+++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml
@@ -210,8 +210,10 @@ Kirigami.Page {
text: progressBar.visible ? qsTr("Cancel") : qsTr("Quit")
onClicked: {
manager.cancelDownloadDC()
- if (!progressBar.visible)
+ if (!progressBar.visible) {
stackView.pop();
+ download.text = qsTr("Download")
+ }
manager.appendTextToLog("exit DCDownload screen")
}
}
@@ -274,6 +276,7 @@ Kirigami.Page {
diveModel.clear()
diveModel.addAllDives()
stackView.pop();
+ download.text = qsTr("Download")
}
}
Controls.Label {