mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +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")
|
||||
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 {
|
||||
|
|
Loading…
Reference in a new issue