fix: disconnect button
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user