This commit is contained in:
Robin Davies
2022-02-01 18:51:38 -05:00
parent dddd6a85d5
commit caa2aa1312
26 changed files with 1245 additions and 114 deletions
+5 -5
View File
@@ -75,18 +75,18 @@ const ToobFrequencyResponseView =
{
this.requestDeferred = false;
this.requestOutstanding = false;
this.updateFrequencyResponse(); // after a reconnect.
this.updateAllWaveShapes(); // after a reconnect.
}
}
onPedalBoardChanged()
{
this.updateFrequencyResponse();
this.updateAllWaveShapes();
}
componentDidMount()
{
this.model.state.addOnChangedHandler(this.onStateChanged);
this.model.pedalBoard.addOnChangedHandler(this.onPedalBoardChanged);
this.updateFrequencyResponse();
this.updateAllWaveShapes();
}
componentWillUnmount()
{
@@ -154,7 +154,7 @@ const ToobFrequencyResponseView =
}
updateFrequencyResponse() {
updateAllWaveShapes() {
if (this.requestOutstanding) { // throttling.
this.requestDeferred = true;
return;
@@ -169,7 +169,7 @@ const ToobFrequencyResponseView =
() => {
this.requestOutstanding = false;
this.requestDeferred = false;
this.updateFrequencyResponse();
this.updateAllWaveShapes();
}
);