diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-14 14:04:44 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-14 14:04:44 +0200 |
| commit | 4eaf3bdce7b4e7663c6ba5c206d68eacbd24949e (patch) | |
| tree | 1183bab6d548425910d5dfc71c948fb64939ec8f /desktop/modules/bluetooth | |
| parent | 5fb6c9636051423254c3f36f0ff19857898c93ad (diff) | |
| download | quickshell-4eaf3bdce7b4e7663c6ba5c206d68eacbd24949e.tar.gz quickshell-4eaf3bdce7b4e7663c6ba5c206d68eacbd24949e.zip | |
fix(desktop): wire tile active state and clear connect errors
Diffstat (limited to 'desktop/modules/bluetooth')
| -rw-r--r-- | desktop/modules/bluetooth/BluetoothModule.qml | 3 | ||||
| -rw-r--r-- | desktop/modules/bluetooth/BluetoothTile.qml | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/desktop/modules/bluetooth/BluetoothModule.qml b/desktop/modules/bluetooth/BluetoothModule.qml index 80f80b9..4fd600f 100644 --- a/desktop/modules/bluetooth/BluetoothModule.qml +++ b/desktop/modules/bluetooth/BluetoothModule.qml @@ -36,6 +36,9 @@ Module { // Null for the first ~2s, then filled. Safe navigation everywhere. icon: mod.adapter && mod.adapter.enabled ? "\uf293" : "\uf05e" + // Active while anything is connected. + active: mod.anyConnected + function notify(title, body) { notifyProc.command = ["notify-send", "--app-name=bluetooth", "--urgency=critical", "--icon=error", title, body]; diff --git a/desktop/modules/bluetooth/BluetoothTile.qml b/desktop/modules/bluetooth/BluetoothTile.qml index 1489f16..226e1da 100644 --- a/desktop/modules/bluetooth/BluetoothTile.qml +++ b/desktop/modules/bluetooth/BluetoothTile.qml @@ -21,6 +21,7 @@ Text { color: bt.anyConnected ? Theme.text : Theme.subtext text: !bt.adapter || !bt.adapter.enabled ? "Off" : bt.connectedDevices.length === 0 ? "No devices" - : bt.connectedDevices.length === 1 ? bt.connectedDevices[0].name + : bt.connectedDevices.length === 1 + ? (bt.connectedDevices[0].name || bt.connectedDevices[0].deviceName || bt.connectedDevices[0].address) : bt.connectedDevices.length + " connected" } |
