had opencode fix my weird animation issues, now the bar loads correctly from a coldstart
This commit is contained in:
@@ -9,19 +9,11 @@ Singleton {
|
||||
property BluetoothAdapter defaultAdapter: Bluetooth.defaultAdapter || null
|
||||
property string defaultAdapterName: defaultAdapter ? defaultAdapter.adapterId : ""
|
||||
|
||||
property bool anyConnected: root.defaultAdapter != null
|
||||
&& root.defaultAdapter.devices.values.some(device => device.connected)
|
||||
|
||||
function getConnected() {
|
||||
let deviceList = getDevicesList();
|
||||
if (deviceList.length == 0) {
|
||||
return false;
|
||||
} else {
|
||||
for (let device in deviceList) {
|
||||
let currentDevice = deviceList[device];
|
||||
if (currentDevice.connected == true) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return root.anyConnected;
|
||||
}
|
||||
|
||||
function getConnectedDevicesList() {
|
||||
|
||||
Reference in New Issue
Block a user