aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-12-13 15:30:51 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-12-13 08:23:27 -0800
commit239974d600c6d629fe896272d787d78b5b9a3d37 (patch)
tree4768cbc06b2898278c933b84ec30a332f4404a2a /mobile-widgets
parent59f86a06adfaf415aa8a8fe45f9a1e6df5f616a9 (diff)
downloadsubsurface-239974d600c6d629fe896272d787d78b5b9a3d37.tar.gz
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>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qml/DownloadFromDiveComputer.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml
index 5a3f3190e..426b9b8ab 100644
--- a/mobile-widgets/qml/DownloadFromDiveComputer.qml
+++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml
@@ -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 {