aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-23 17:51:48 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-23 17:51:48 -0700
commit04213e1f0314c0f3597654698bbb2f2d3847c930 (patch)
tree071485ce22847e61c1c536d097cf96b3c75021e3 /mobile-widgets/qml
parentbe8eedb773347221123e4dbbf028e40a84f1233f (diff)
downloadsubsurface-04213e1f0314c0f3597654698bbb2f2d3847c930.tar.gz
QML UI: Download from DC: tell user if BT is disabled
This makes much more sense than displaying "No dives" Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/DownloadFromDiveComputer.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml
index 941eb57ee..72c5685ce 100644
--- a/mobile-widgets/qml/DownloadFromDiveComputer.qml
+++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml
@@ -18,6 +18,7 @@ Kirigami.Page {
property alias dcImportModel: importModel
property bool divesDownloaded: false
property bool btEnabled: manager.btEnabled()
+ property string btMessage: manager.btEnabled() ? "" : qsTr("Bluetooth is not enabled")
DCDownloadThread {
id: downloadThread
@@ -217,7 +218,7 @@ Kirigami.Page {
Kirigami.Label {
Layout.maximumWidth: parent.width - download.width - quitbutton.width
text: divesDownloaded ? qsTr(" Downloaded dives") :
- (manager.progressMessage != "" ? qsTr("Info:") + " " + manager.progressMessage : qsTr(" No dives"))
+ (manager.progressMessage != "" ? qsTr("Info:") + " " + manager.progressMessage : btMessage)
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
}
}