From 59f86a06adfaf415aa8a8fe45f9a1e6df5f616a9 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Wed, 13 Dec 2017 14:39:10 +0100 Subject: 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 --- mobile-widgets/qml/DownloadFromDiveComputer.qml | 5 ++++- 1 file changed, 4 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 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 { -- cgit v1.2.3-70-g09d2