From 8b80213b2ebf36a1a8da2279838dbc739431bc6e Mon Sep 17 00:00:00 2001 From: Soramane <61896496+soramanew@users.noreply.github.com> Date: Wed, 23 Jul 2025 13:27:59 +1000 Subject: bar: fix bluetooth when off --- modules/bar/components/StatusIcons.qml | 2 +- modules/bar/popouts/Bluetooth.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') 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 { -- cgit v1.2.3-freya