Update PiPedalModel.tsx

Reverting logging to console and persist here.
This commit is contained in:
Extremesecrecy
2025-07-27 15:33:05 -07:00
parent fb4d26a2f4
commit a753b04b63
+5 -17
View File
@@ -2225,8 +2225,6 @@ export class PiPedalModel //implements PiPedalModel
m = message.toString();
}
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 {
// 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)
.catch((error) => {
this.showAlert(error);
// TEMPORARY DEBUGGING: Log saving errors to console. Remove later.
console.error("setJackServerSettings failed:", error);
});
}
applyJackServerSettings(jackServerSettings: JackServerSettings): void {
// CONSISTENCY FIX: Ensure local model state is updated immediately.
this.jackServerSettings.set(jackServerSettings.clone());
this.webSocket?.request<void>("applyJackServerSettings", jackServerSettings)
.catch((error) => {
this.showAlert(error);
// TEMPORARY DEBUGGING: Log applying errors to console. Remove later.
console.error("applyJackServerSettings failed:", error);
});
}
this.webSocket?.request<void>("applyJackServerSettings", jackServerSettings)
.catch((error) => {
this.showAlert(error);
});
}
updateVst3State(pedalboard: Pedalboard) {
// let it = pedalboard.itemsGenerator();
@@ -3576,4 +3565,3 @@ export class PiPedalModelFactory {
};