fix: restore dsp from file was always creating demo
This commit is contained in:
@@ -46,6 +46,7 @@ export async function restoreDSPs(
|
||||
});
|
||||
return restored;
|
||||
}
|
||||
|
||||
export async function addDSP(
|
||||
setDsps: SetDsps,
|
||||
setSelected: React.Dispatch<React.SetStateAction<number | null>>,
|
||||
|
||||
@@ -118,7 +118,7 @@ export async function create(params: {
|
||||
ip: params.ip,
|
||||
port: params.port,
|
||||
deviceId: params.deviceId,
|
||||
mode: params.demo ? DSPMode.Demo: DSPMode.Normal,
|
||||
mode: params.demo,
|
||||
isConnecting: false,
|
||||
pollingPaused: true,
|
||||
state: snapshot.state,
|
||||
|
||||
Reference in New Issue
Block a user