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>
This commit is contained in:
Jan Mulder 2017-12-13 14:39:10 +01:00 committed by Dirk Hohndel
parent 88141fb70d
commit 59f86a06ad

View file

@ -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 {