From 239974d600c6d629fe896272d787d78b5b9a3d37 Mon Sep 17 00:00:00 2001 From: Jan Mulder Date: Wed, 13 Dec 2017 15:30:51 +0100 Subject: 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 --- mobile-widgets/qml/DownloadFromDiveComputer.qml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mobile-widgets') 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 { -- cgit v1.2.3-70-g09d2