autofmt+settings db

This commit is contained in:
Lemmy
2026-02-13 16:09:25 -05:00
parent 50e2055028
commit f08b1d5666
9 changed files with 104 additions and 73 deletions
+9 -3
View File
@@ -165,11 +165,17 @@ Singleton {
}
function isBluetoothDevice(device) {
if (!device) {return false;}
if (!device) {
return false;
}
// Check for Quickshell Bluetooth device property
if (device.batteryAvailable !== undefined) {return true;}
if (device.batteryAvailable !== undefined) {
return true;
}
// Check for UPower device path indicating it's a Bluetooth device
if (device.nativePath && (device.nativePath.includes("bluez") || device.nativePath.includes("bluetooth"))) {return true;}
if (device.nativePath && (device.nativePath.includes("bluez") || device.nativePath.includes("bluetooth"))) {
return true;
}
return false;
}