From 80da40f67852a61ed736ca639fff1fcf84f542bc Mon Sep 17 00:00:00 2001 From: Lucas Date: Wed, 30 Sep 2026 12:42:14 +0200 Subject: [PATCH] fix: disconnect button --- src/features/dsp408/dsp408.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/features/dsp408/dsp408.ts b/src/features/dsp408/dsp408.ts index 3004401..363a089 100644 --- a/src/features/dsp408/dsp408.ts +++ b/src/features/dsp408/dsp408.ts @@ -161,7 +161,7 @@ export function forDSP408(dsp: DSP408, setDsps: SetDsps, notify: NotifyFn) { return; } - let r = await invoke('unlock_device', { id: dsp.id, password }); + await invoke('unlock_device', { id: dsp.id, password }); state = await updateDSPState(); @@ -213,6 +213,8 @@ export function forDSP408(dsp: DSP408, setDsps: SetDsps, notify: NotifyFn) { await invoke('disconnect_dsp408', { id: dsp.id }); }); + await updateDSPState(); + updateDSP(setDsps, dsp.id, (d) => ({ ...d, pollingPaused: true,