disable Bluetooth toggle when Bluetooth is blocked

This commit is contained in:
notiant
2026-04-16 11:58:44 +02:00
committed by GitHub
parent f37dd3c2ac
commit 5826a293ad
@@ -161,7 +161,7 @@ Item {
label: I18n.tr("common.bluetooth")
icon: BluetoothService.enabled ? "bluetooth" : "bluetooth-off"
checked: BluetoothService.enabled
enabled: !NetworkService.airplaneModeEnabled && BluetoothService.bluetoothAvailable
enabled: !NetworkService.airplaneModeEnabled && BluetoothService.bluetoothAvailable && !BluetoothService.blocked
onToggled: checked => BluetoothService.setBluetoothEnabled(checked)
Layout.alignment: Qt.AlignVCenter
}