bar: fix bluetooth when off
This commit is contained in:
parent
21eab6f698
commit
8b80213b2e
2 changed files with 2 additions and 2 deletions
|
|
@ -39,7 +39,7 @@ Item {
|
||||||
anchors.topMargin: Appearance.spacing.smaller / 2
|
anchors.topMargin: Appearance.spacing.smaller / 2
|
||||||
|
|
||||||
animate: true
|
animate: true
|
||||||
text: Bluetooth.defaultAdapter.enabled ? "bluetooth" : "bluetooth_disabled"
|
text: Bluetooth.defaultAdapter?.enabled ? "bluetooth" : "bluetooth_disabled"
|
||||||
color: root.colour
|
color: root.colour
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ ColumnLayout {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
Layout.bottomMargin: Appearance.spacing.small
|
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 {
|
StyledText {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue