summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/lowenergyscanner/assets
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bluetooth/lowenergyscanner/assets')
-rw-r--r--examples/bluetooth/lowenergyscanner/assets/Menu.qml1
-rw-r--r--examples/bluetooth/lowenergyscanner/assets/main.qml8
2 files changed, 7 insertions, 2 deletions
diff --git a/examples/bluetooth/lowenergyscanner/assets/Menu.qml b/examples/bluetooth/lowenergyscanner/assets/Menu.qml
index d1eaebb2..3669223a 100644
--- a/examples/bluetooth/lowenergyscanner/assets/Menu.qml
+++ b/examples/bluetooth/lowenergyscanner/assets/Menu.qml
@@ -68,6 +68,7 @@ Rectangle {
text: menuText
elide: Text.ElideMiddle
color: "#E3E3E3"
+ wrapMode: Text.WordWrap
}
MouseArea {
diff --git a/examples/bluetooth/lowenergyscanner/assets/main.qml b/examples/bluetooth/lowenergyscanner/assets/main.qml
index e135d699..7f03d4fa 100644
--- a/examples/bluetooth/lowenergyscanner/assets/main.qml
+++ b/examples/bluetooth/lowenergyscanner/assets/main.qml
@@ -137,8 +137,12 @@ Rectangle {
menuText: device.update
onButtonClick: {
device.startDeviceDiscovery();
- info.dialogText = "Searching...";
- info.visible = true;}
+ // if startDeviceDiscovery() failed device.state is not set
+ if (device.state) {
+ info.dialogText = "Searching...";
+ info.visible = true;
+ }
+ }
}
Loader {