Browse Source

VST3 Client: Disallow creating a new editor if one editor is already active

tags/2021-05-28
reuk 4 years ago
parent
commit
e0306d25d4
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp

+ 6
- 4
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp View File

@@ -927,11 +927,13 @@ public:
{
if (auto* pluginInstance = getPluginInstance())
{
if (pluginInstance->hasEditor() && name != nullptr
&& strcmp (name, Vst::ViewType::kEditor) == 0)
{
const auto mayCreateEditor = pluginInstance->hasEditor()
&& name != nullptr
&& std::strcmp (name, Vst::ViewType::kEditor) == 0
&& pluginInstance->getActiveEditor() == nullptr;
if (mayCreateEditor)
return new JuceVST3Editor (*this, *pluginInstance);
}
}
return nullptr;


Loading…
Cancel
Save