bar: fix bluetooth when off

This commit is contained in:
Soramane 2025-07-23 13:27:59 +10:00
parent 21eab6f698
commit 8b80213b2e
2 changed files with 2 additions and 2 deletions

View file

@ -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
}

View file

@ -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 {