mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-14 10:35:11 +00:00
ble/alerts: move bluetooth not available from notifications
This commit is contained in:
@@ -50,6 +50,7 @@ function* handleConnect(): Generator {
|
||||
|
||||
const available = yield* call(() => navigator.bluetooth.getAvailability());
|
||||
if (!available) {
|
||||
yield* put(alertsShowAlert('ble', 'bluetoothNotAvailable'));
|
||||
yield* put(didFailToConnect(Reason.NoBluetooth));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user