From f488d928a4e8196dc07378aeecd92ab750c59b98 Mon Sep 17 00:00:00 2001 From: davfsa Date: Fri, 10 Jan 2025 14:25:04 +0100 Subject: [PATCH] Update bluetooth label when a new device connects/disconnects --- src/components/bar/modules/bluetooth/index.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/bar/modules/bluetooth/index.tsx b/src/components/bar/modules/bluetooth/index.tsx index 7f55d8075..a0b13eca5 100644 --- a/src/components/bar/modules/bluetooth/index.tsx +++ b/src/components/bar/modules/bluetooth/index.tsx @@ -38,7 +38,13 @@ const Bluetooth = (): BarBoxChild => { ); const componentBinding = Variable.derive( - [bind(options.bar.bluetooth.label), bind(bluetoothService, 'isPowered'), bind(bluetoothService, 'devices')], + [ + bind(options.bar.bluetooth.label), + bind(bluetoothService, 'isPowered'), + bind(bluetoothService, 'devices'), + + bind(bluetoothService, 'isConnected'), + ], (showLabel: boolean, isPowered: boolean, devices: AstalBluetooth.Device[]): JSX.Element => { if (showLabel) { return (