fix: handle abort password

This commit is contained in:
Lucas
2026-09-30 16:35:15 +02:00
parent 684f5ce866
commit 50a3c1a1e5
+3 -1
View File
@@ -145,7 +145,9 @@ export function forDSP408(dsp: DSP408, setDsps: SetDsps, notify: NotifyFn) {
async function abortLocked() {
await invoke('disconnect_dsp408', { id: dsp.id }).catch(() => {});
updateDSP(setDsps, dsp.id, (d) => ({ ...d, passwordRequired: true }));
updateDSPState();
updateDSP(setDsps, dsp.id, (d) => ({ ...d, isConnecting: false, passwordRequired: true }));
}
async function connectInternal(password?: string) {