diff options
| -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 { |