Bluetooth: added a button to enable/disable straight from the panel + minor improvements.

This commit is contained in:
LemmyCook 2025-09-09 21:23:57 -04:00
parent b1f501f3f9
commit 16cea533da
4 changed files with 71 additions and 10 deletions

View file

@ -22,15 +22,7 @@ ColumnLayout {
label: "Enable Bluetooth"
description: "Enable Bluetooth connectivity."
checked: Settings.data.network.bluetoothEnabled
onToggled: checked => {
Settings.data.network.bluetoothEnabled = checked
BluetoothService.setBluetoothEnabled(checked)
if (checked) {
ToastService.showNotice("Bluetooth", "Enabled")
} else {
ToastService.showNotice("Bluetooth", "Disabled")
}
}
onToggled: checked => BluetoothService.setBluetoothEnabled(checked)
}
NDivider {