We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91c9db5 commit 1644ed5Copy full SHA for 1644ed5
src/bluetooth/adapter.cpp
@@ -53,6 +53,12 @@ QString BluetoothAdapter::adapterId() const {
53
54
void BluetoothAdapter::setEnabled(bool enabled) {
55
if (enabled == this->bEnabled) return;
56
+
57
+ if (enabled && this->bState == BluetoothAdapterState::Blocked) {
58
+ qCCritical(logAdapter) << "Cannot enable adapter because it is blocked by rfkill.";
59
+ return;
60
+ }
61
62
this->bEnabled = enabled;
63
this->pEnabled.write();
64
}
0 commit comments