mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-01 18:15:41 +00:00
update BluetoothService.qml
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user