diff options
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" } |
