fix(bluetooth): remove redundant auto-trust Instantiator

The pairing script already calls `bluetoothctl trust` after a successful
pair, so the `!modelData.trusted` condition was never true.
This commit is contained in:
cbxcvl
2026-02-26 14:49:59 -03:00
parent 470b61f4e1
commit fca7e360ab
-16
View File
@@ -93,22 +93,6 @@ Singleton {
onTriggered: root.attemptAutoConnect()
}
Instantiator {
id: deviceWatcher
active: root.autoConnectEnabled && root.adapter !== null
model: root.adapter ? root.adapter.devices : null
delegate: Connections {
required property var modelData
target: modelData
function onPairedChanged() {
if (modelData.paired && !modelData.trusted) {
Logger.i("Bluetooth", "Auto-trusting newly paired device:", modelData.name || modelData.deviceName);
modelData.trusted = true;
}
}
}
}
function init() {
Logger.i("Bluetooth", "Service started");
}