update BluetoothService.qml

This commit is contained in:
notiant
2025-10-31 16:19:08 +01:00
committed by GitHub
parent cf7ae75738
commit 99573f3201
+1 -1
View File
@@ -13,7 +13,7 @@ Singleton {
property bool airplaneModeToggled: false
property bool lastBluetoothBlocked: false
readonly property BluetoothAdapter adapter: Bluetooth.defaultAdapter
readonly property int state: adapter?.state
readonly property int state: adapter?.state ?? 0
readonly property bool available: (adapter !== null)
readonly property bool enabled: adapter?.enabled ?? false
readonly property bool blocked: (adapter?.state === BluetoothAdapterState.Blocked)