Skip to content

Commit 32a34fa

Browse files
Fix default Bluetooth flow logic (#249)
1 parent f7695eb commit 32a34fa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/script/stores/connectDialogStore.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@ export const startConnectionProcess = (): void => {
4242
const { bluetooth } = get(compatibility);
4343
const { isInputConnected, reconnectState } = get(state);
4444
// Updating the state will cause a popup to appear, from where the connection process will take place
45-
4645
let initialInputDialogState = ConnectDialogStates.START_BLUETOOTH;
4746
if (reconnectState.connectionType === 'none' && !bluetooth) {
4847
initialInputDialogState = ConnectDialogStates.START_RADIO;
49-
} else if (reconnectState.connectionType !== 'bluetooth') {
48+
} else if (
49+
reconnectState.connectionType === 'bridge' ||
50+
reconnectState.connectionType === 'remote'
51+
) {
5052
initialInputDialogState = ConnectDialogStates.START_RADIO;
5153
}
5254
connectionDialogState.update(s => {

0 commit comments

Comments
 (0)