diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index 95c5981..3085ce1 100755 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -117,10 +117,13 @@ void ObxdAudioProcessorEditor::resized() { int d = child->getIntAttribute("d"); int w = child->getIntAttribute("w"); int h = child->getIntAttribute("h"); + bool tooltipEnabled = child->getBoolAttribute("tooltip", false); DBG(" COmponent : " << name); if (mappingComps[name] != nullptr){ - if (dynamic_cast(mappingComps[name])){ - mappingComps[name]->setBounds(transformBounds(x, y, d,d)); + if (auto* knob = dynamic_cast(mappingComps[name])){ + knob->setBounds(transformBounds(x, y, d,d)); + if (!tooltipEnabled) + knob->setPopupDisplayEnabled(false, false, nullptr); } else if (dynamic_cast(mappingComps[name])){ mappingComps[name]->setBounds(transformBounds(x, y, w, h));