优化 peq 流程
This commit is contained in:
@@ -195,7 +195,7 @@ export function DeviceProvider({ children }: { children: React.ReactNode }) {
|
||||
applyPeqFiltersToState(payload.peqChange.filters);
|
||||
return;
|
||||
}
|
||||
if (!api) return;
|
||||
if (!api) throw new Error("EQ unavailable");
|
||||
await api.upgradePeqChange(payload);
|
||||
applyPeqFiltersToState(payload.peqChange.filters);
|
||||
}, [api, isDemoMode, applyPeqFiltersToState]);
|
||||
@@ -205,7 +205,7 @@ export function DeviceProvider({ children }: { children: React.ReactNode }) {
|
||||
applyPeqFiltersToState(payload.peqApply.filters);
|
||||
return;
|
||||
}
|
||||
if (!api) return;
|
||||
if (!api) throw new Error("EQ unavailable");
|
||||
await api.upgradePeqApply(payload);
|
||||
applyPeqFiltersToState(payload.peqApply.filters);
|
||||
}, [api, isDemoMode, applyPeqFiltersToState]);
|
||||
|
||||
Reference in New Issue
Block a user