Skip to content

Commit 5826a29

Browse files
authored
disable Bluetooth toggle when Bluetooth is blocked
1 parent f37dd3c commit 5826a29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/Panels/Settings/Tabs/Connections/BluetoothSubTab.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Item {
161161
label: I18n.tr("common.bluetooth")
162162
icon: BluetoothService.enabled ? "bluetooth" : "bluetooth-off"
163163
checked: BluetoothService.enabled
164-
enabled: !NetworkService.airplaneModeEnabled && BluetoothService.bluetoothAvailable
164+
enabled: !NetworkService.airplaneModeEnabled && BluetoothService.bluetoothAvailable && !BluetoothService.blocked
165165
onToggled: checked => BluetoothService.setBluetoothEnabled(checked)
166166
Layout.alignment: Qt.AlignVCenter
167167
}

0 commit comments

Comments
 (0)