bluetooth toggle

This commit is contained in:
Zacharias-Brohn
2026-02-23 18:49:48 +01:00
parent 83db3a39cb
commit 0ff4ffc869
@@ -65,10 +65,11 @@ CustomRect {
}
Toggle {
visible: Bluetooth.defaultAdapter?.enabled ?? false
visible: Bluetooth.defaultAdapter ?? false
icon: Bluetooth.defaultAdapter?.enabled ? "bluetooth" : "bluetooth_disabled"
checked: Bluetooth.defaultAdapter?.enabled ?? false
onClicked: {
// console.log(Bluetooth.defaultAdapter)
const adapter = Bluetooth.defaultAdapter
if ( adapter )
adapter.enabled = !adapter.enabled;