From 04213e1f0314c0f3597654698bbb2f2d3847c930 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 23 Jul 2017 17:51:48 -0700 Subject: 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 --- mobile-widgets/qml/DownloadFromDiveComputer.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mobile-widgets/qml') 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 } } -- cgit v1.2.3-70-g09d2