From 6f39d006ffbda744c7e5253332f60e40e3685629 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Wed, 22 Nov 2017 19:34:09 -0800 Subject: QML: Bluetooth: fix initial paired devices list Paired device count was being set to zero after getting initial list from the bluetooth service. Bug-AGL: SPEC-1123 Change-Id: If4d70e45bcb2b3fcbde3f4ace0d251601e38c157 Signed-off-by: Matt Ranostay --- app/bluetooth/Bluetooth.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bluetooth/Bluetooth.qml b/app/bluetooth/Bluetooth.qml index 04c9284..cef0578 100644 --- a/app/bluetooth/Bluetooth.qml +++ b/app/bluetooth/Bluetooth.qml @@ -144,8 +144,8 @@ SettingPage { onCheckedChanged: { console.log("Bluetooth set to", checked) if (checked == true) { - initBTlist() pairedDeviceCount=0 + initBTlist() btOn=true request(btAPIpath + 'power?value=1', function (o) { // log the json response -- cgit 1.2.3-korg