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:
parent
7bc7dff6f6
commit
848082095f
1 changed files with 16 additions and 0 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue