Update BluetoothService.qml

This commit is contained in:
Turann_
2026-02-15 23:14:46 +03:00
parent cec63da638
commit 5f1bc5c587
+4 -1
View File
@@ -482,7 +482,7 @@ Singleton {
id: pairingProcess
stdout: SplitParser {
onRead: data => {
if (data.indexOf("[PIN_REQ]") !== -1) {
if (data.indexOf("PIN_REQUIRED") !== -1) {
root.pinRequired = true;
Logger.d("Bluetooth", "PIN required for pairing");
ToastService.showNotice(I18n.tr("common.bluetooth"), I18n.tr("bluetooth.panel.pin-required"), "lock");
@@ -502,6 +502,9 @@ Singleton {
root._discoveryWasRunning = false;
root.requestCtlPoll();
}
environment: ({
"LC_ALL": "C"
})
}
// Pair using bluetoothctl which registers its own BlueZ agent internally.