diff --git a/modules/bar/components/StatusIcons.qml b/modules/bar/components/StatusIcons.qml index b2cca54a..971ec4d9 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 fb66bd6f..aefdf4dd 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 {