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 7eec99414a7c1e53d3de1ccb3cd15e75e0571497
parent 8ecefba1457ef8f64e96d381cf593d28a7fc547d
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date:   Wed, 28 Aug 2024 00:53:13 +0200

fix broken tooltips for parameters bound to current part

Diffstat:
Msource/jucePluginLib/parameterbinding.cpp | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/source/jucePluginLib/parameterbinding.cpp b/source/jucePluginLib/parameterbinding.cpp @@ -352,8 +352,12 @@ namespace pluginLib { m_bindings.emplace_back(_boundParameter); - _boundParameter.component->getProperties().set("parameter", static_cast<int>(_boundParameter.paramIndex)); - _boundParameter.component->getProperties().set("part", _boundParameter.part); + const auto paramIndex = _boundParameter.paramIndex; + _boundParameter.component->getProperties().set("parameter", static_cast<int>(paramIndex)); + if(_boundParameter.part != CurrentPart) + _boundParameter.component->getProperties().set("part", _boundParameter.part); + else + _boundParameter.component->getProperties().remove("part"); m_boundComponents.erase(_boundParameter.component); m_boundParameters.erase(_boundParameter.parameter);