diff options
| author | Soramane <61896496+soramanew@users.noreply.github.com> | 2025-07-23 13:27:59 +1000 |
|---|---|---|
| committer | Soramane <61896496+soramanew@users.noreply.github.com> | 2025-07-23 13:27:59 +1000 |
| commit | 8b80213b2ebf36a1a8da2279838dbc739431bc6e (patch) | |
| tree | c28aabd9d44fe15e1d40641e38ed75b58a8daf60 | |
| parent | nix/dev: remove logging rules from devshell (diff) | |
| download | caelestia-shell-8b80213b2ebf36a1a8da2279838dbc739431bc6e.tar.gz caelestia-shell-8b80213b2ebf36a1a8da2279838dbc739431bc6e.tar.bz2 caelestia-shell-8b80213b2ebf36a1a8da2279838dbc739431bc6e.zip | |
bar: fix bluetooth when off
| -rw-r--r-- | modules/bar/components/StatusIcons.qml | 2 | ||||
| -rw-r--r-- | modules/bar/popouts/Bluetooth.qml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/bar/components/StatusIcons.qml b/modules/bar/components/StatusIcons.qml index b2cca54..971ec4d 100644 --- a/modules/bar/components/StatusIcons.qml +++ b/modules/bar/components/StatusIcons.qml @@ -39,7 +39,7 @@ Item { anchors.topMargin: Appearance.spacing.smaller / 2 animate: true - text: Bluetooth.defaultAdapter.enabled ? "bluetooth" : "bluetooth_disabled" + text: Bluetooth.defaultAdapter?.enabled ? "bluetooth" : "bluetooth_disabled" color: root.colour } diff --git a/modules/bar/popouts/Bluetooth.qml b/modules/bar/popouts/Bluetooth.qml index fb66bd6..aefdf4d 100644 --- a/modules/bar/popouts/Bluetooth.qml +++ b/modules/bar/popouts/Bluetooth.qml @@ -15,7 +15,7 @@ ColumnLayout { StyledText { Layout.bottomMargin: Appearance.spacing.small - text: qsTr("Bluetooth %1").arg(BluetoothAdapterState.toString(Bluetooth.defaultAdapter.state).toLowerCase()) + text: qsTr("Bluetooth %1").arg(BluetoothAdapterState.toString(Bluetooth.defaultAdapter?.state).toLowerCase()) } StyledText { |