Update PiPedalModel.tsx
Reverting logging to console and persist here.
This commit is contained in:
@@ -2225,8 +2225,6 @@ export class PiPedalModel //implements PiPedalModel
|
|||||||
m = message.toString();
|
m = message.toString();
|
||||||
}
|
}
|
||||||
this.alertMessage.set(m);
|
this.alertMessage.set(m);
|
||||||
// TEMPORARY DEBUGGING: Log alert messages to console. Remove later.
|
|
||||||
console.error("PiPedalModel Alert:", m);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -2527,27 +2525,18 @@ export class PiPedalModel //implements PiPedalModel
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
setJackServerSettings(jackServerSettings: JackServerSettings): void {
|
setJackServerSettings(jackServerSettings: JackServerSettings): void {
|
||||||
// Update the local observable so the UI reflects the new selection
|
|
||||||
// immediately. Persist the settings via the websocket as well.
|
|
||||||
this.jackServerSettings.set(jackServerSettings.clone());
|
|
||||||
|
|
||||||
this.webSocket?.request<void>("setJackServerSettings", jackServerSettings)
|
this.webSocket?.request<void>("setJackServerSettings", jackServerSettings)
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
this.showAlert(error);
|
this.showAlert(error);
|
||||||
// TEMPORARY DEBUGGING: Log saving errors to console. Remove later.
|
|
||||||
console.error("setJackServerSettings failed:", error);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
applyJackServerSettings(jackServerSettings: JackServerSettings): void {
|
applyJackServerSettings(jackServerSettings: JackServerSettings): void {
|
||||||
// CONSISTENCY FIX: Ensure local model state is updated immediately.
|
this.webSocket?.request<void>("applyJackServerSettings", jackServerSettings)
|
||||||
this.jackServerSettings.set(jackServerSettings.clone());
|
.catch((error) => {
|
||||||
this.webSocket?.request<void>("applyJackServerSettings", jackServerSettings)
|
this.showAlert(error);
|
||||||
.catch((error) => {
|
});
|
||||||
this.showAlert(error);
|
}
|
||||||
// TEMPORARY DEBUGGING: Log applying errors to console. Remove later.
|
|
||||||
console.error("applyJackServerSettings failed:", error);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
updateVst3State(pedalboard: Pedalboard) {
|
updateVst3State(pedalboard: Pedalboard) {
|
||||||
// let it = pedalboard.itemsGenerator();
|
// let it = pedalboard.itemsGenerator();
|
||||||
@@ -3576,4 +3565,3 @@ export class PiPedalModelFactory {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user