fix: disconnect button

This commit is contained in:
Lucas
2026-09-30 12:42:14 +02:00
parent 3cca2f41f4
commit 80da40f678
+3 -1
View File
@@ -161,7 +161,7 @@ export function forDSP408(dsp: DSP408, setDsps: SetDsps, notify: NotifyFn) {
return; return;
} }
let r = await invoke('unlock_device', { id: dsp.id, password }); await invoke('unlock_device', { id: dsp.id, password });
state = await updateDSPState(); state = await updateDSPState();
@@ -213,6 +213,8 @@ export function forDSP408(dsp: DSP408, setDsps: SetDsps, notify: NotifyFn) {
await invoke('disconnect_dsp408', { id: dsp.id }); await invoke('disconnect_dsp408', { id: dsp.id });
}); });
await updateDSPState();
updateDSP(setDsps, dsp.id, (d) => ({ updateDSP(setDsps, dsp.id, (d) => ({
...d, ...d,
pollingPaused: true, pollingPaused: true,