mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
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:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user