gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit ac2e06b123ad4f823c82d673c8949000a73e1e7d
parent a994c7f9d6482d052019563905950dfeb18fa2eb
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Sun, 20 Mar 2022 19:06:22 +0100

fix not all components correctly updating initial values

Diffstat:
Msource/jucePlugin/ui3/VirusEditor.cpp | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/source/jucePlugin/ui3/VirusEditor.cpp b/source/jucePlugin/ui3/VirusEditor.cpp @@ -116,6 +116,10 @@ namespace genericVirusUI if(menuButton) menuButton->onClick = m_openMenuCallback; + + updatePresetName(); + updatePlayModeButtons(); + updateControlLabel(nullptr); } VirusEditor::~VirusEditor() @@ -134,7 +138,7 @@ namespace genericVirusUI { if(_component.getProperties().contains("disabledAlpha")) { - float a = _component.getProperties()["disabledAlpha"]; + const float a = _component.getProperties()["disabledAlpha"]; _component.setAlpha(_enable ? 1.0f : a); _component.setEnabled(_enable);