Browse Source

VST Host: Ensure parent window is showing before attempting to open an editor

This fixes an issue with NI Raum and Choral where the editors would open
in a new window, rather than in the same window as the VST
AudioProcessorEditor.
v6.1.6
reuk 4 years ago
parent
commit
96612b12d8
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp

+ 3
- 1
modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp View File

@@ -2855,7 +2855,7 @@ public:
{
if (cocoaWrapper != nullptr)
{
if (isVisible())
if (isShowing())
openPluginWindow ((NSView*) cocoaWrapper->getView());
else
closePluginWindow();
@@ -2873,6 +2873,8 @@ public:
setSize (w, h);
}
}
void parentHierarchyChanged() override { visibilityChanged(); }
#else
void paint (Graphics& g) override
{


Loading…
Cancel
Save