mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
-- unnecessary variable -- (read desc)
Timer and delay makes it horrible because lack of sleep(500); or something like it - as far as i know. @notiant Will you?
This commit is contained in:
@@ -660,15 +660,11 @@ Singleton {
|
||||
return;
|
||||
}
|
||||
|
||||
var devList = adapter.devices.values.filter(function (dev) {
|
||||
return dev && dev.paired && !dev.connected && !dev.blocked && getDeviceAutoConnect(dev.address) === true;
|
||||
});
|
||||
var devList = adapter.devices.values.filter(function (dev) { return dev && dev.paired && !dev.connected && !dev.blocked && getDeviceAutoConnect(dev.address) === true; });
|
||||
|
||||
for (var i = 0; i < devList.length; i++) {
|
||||
let dev = devList[i];
|
||||
Logger.i("Bluetooth", "Auto-connecting to:", dev.name || dev.deviceName);
|
||||
|
||||
connectDeviceWithTrust(dev);
|
||||
Logger.i("Bluetooth", "Auto-connecting to:", devList[i].name || devList[i].deviceName);
|
||||
connectDeviceWithTrust(devList[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user