diff options
Diffstat (limited to 'app/bluetooth')
-rw-r--r-- | app/bluetooth/Bluetooth.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/bluetooth/Bluetooth.qml b/app/bluetooth/Bluetooth.qml index 7350adb..7a63e84 100644 --- a/app/bluetooth/Bluetooth.qml +++ b/app/bluetooth/Bluetooth.qml @@ -76,6 +76,7 @@ SettingPage { for (var i = 0; i < data.list.length; i++) { var value = data.list[i] if (value.Paired==="True") { + if(findPairDevice(value.Address) == -1) { pairedDeviceList.append({ deviceAddress: value.Address, deviceName: value.Name, @@ -86,8 +87,10 @@ SettingPage { textToShow: "" }) pairedDeviceCount = pairedDeviceCount + 1 + } } else + if (findDevice(value.Address) == -1) { btDeviceList.append({ deviceAddress: value.Address, deviceName: value.Name, @@ -97,6 +100,7 @@ SettingPage { connectHFP: value.HFPConnected, textToShow: "" }) + } } } |