1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

VST3 Client: Additionally call setIComponentHandler when the handler is set on the edit controller

This commit is contained in:
reuk 2025-09-01 20:00:24 +01:00
parent 7bc7dff6f6
commit 848082095f
No known key found for this signature in database

View file

@ -1421,6 +1421,22 @@ public:
return kResultFalse;
}
tresult PLUGIN_API setComponentHandler (Vst::IComponentHandler* handler) override
{
const auto result = EditController::setComponentHandler (handler);
if (result != kResultTrue)
return result;
if (audioProcessor != nullptr)
{
if (auto* extensions = audioProcessor->get()->getVST3ClientExtensions())
extensions->setIComponentHandler (componentHandler);
}
return kResultTrue;
}
//==============================================================================
IPlugView* PLUGIN_API createView (const char* name) override
{