diff options
Diffstat (limited to 'mobile-widgets/qml/DownloadFromDiveComputer.qml')
-rw-r--r-- | mobile-widgets/qml/DownloadFromDiveComputer.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml index a9b34f34f..32ea5dfed 100644 --- a/mobile-widgets/qml/DownloadFromDiveComputer.qml +++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml @@ -201,14 +201,16 @@ Kirigami.Page { antialiasing: true radius: Kirigami.Units.smallSpacing * 2 } - text: qsTr("Quit") + text: progressBar.visible ? qsTr("Cancel") : qsTr("Quit") contentItem: Text { text: quitbutton.text color: subsurfaceTheme.darkerPrimaryTextColor } onClicked: { + manager.cancelDownloadDC() + if (!progressBar.visible) + stackView.pop(); manager.appendTextToLog("exit DCDownload screen") - stackView.pop(); } } } |