mobile: reset download screen in a sane state

Set download srceen in a sane state after a previous download
session using this screen. The erroneous behavior was very
similar to the one fixed in commit 7fe9bbe295dcf92. For example,
download some dives, quit the screen, go back, and the bottom
buttons are still selectable.

This commit resets some values when leaving the download screen
(ie. not only swiping it away), so that it looks sane at a next
visit.

Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
Jan Mulder 2017-12-13 15:30:51 +01:00 committed by Dirk Hohndel
parent 59f86a06ad
commit 239974d600

View file

@ -213,6 +213,8 @@ Kirigami.Page {
if (!progressBar.visible) {
stackView.pop();
download.text = qsTr("Download")
divesDownloaded = false
manager.progressMessage = ""
}
manager.appendTextToLog("exit DCDownload screen")
}
@ -277,6 +279,7 @@ Kirigami.Page {
diveModel.addAllDives()
stackView.pop();
download.text = qsTr("Download")
divesDownloaded = false
}
}
Controls.Label {