From: Matt Ranostay Date: Thu, 23 Nov 2017 03:34:09 +0000 (-0800) Subject: QML: Bluetooth: fix initial paired devices list X-Git-Tag: eel_4.99.3 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=325af1f7300831eb776b98bbafe07e5778276780;p=apps%2Fsettings.git 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 --- 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