mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
88141fb70d
commit
59f86a06ad
1 changed files with 4 additions and 1 deletions
|
@ -210,8 +210,10 @@ Kirigami.Page {
|
||||||
text: progressBar.visible ? qsTr("Cancel") : qsTr("Quit")
|
text: progressBar.visible ? qsTr("Cancel") : qsTr("Quit")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
manager.cancelDownloadDC()
|
manager.cancelDownloadDC()
|
||||||
if (!progressBar.visible)
|
if (!progressBar.visible) {
|
||||||
stackView.pop();
|
stackView.pop();
|
||||||
|
download.text = qsTr("Download")
|
||||||
|
}
|
||||||
manager.appendTextToLog("exit DCDownload screen")
|
manager.appendTextToLog("exit DCDownload screen")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -274,6 +276,7 @@ Kirigami.Page {
|
||||||
diveModel.clear()
|
diveModel.clear()
|
||||||
diveModel.addAllDives()
|
diveModel.addAllDives()
|
||||||
stackView.pop();
|
stackView.pop();
|
||||||
|
download.text = qsTr("Download")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
|
|
Loading…
Add table
Reference in a new issue