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:
M | source/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);