Browse Source

VST2 Host: Avoid bad window errors when editor peer is deleted

pull/22/head
reuk 3 years ago
parent
commit
092314deac
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp

+ 6
- 2
modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp View File

@@ -2926,8 +2926,12 @@ public:
void componentPeerChanged() override void componentPeerChanged() override
{ {
closePluginWindow(); closePluginWindow();
openPluginWindow();
componentMovedOrResized (true, true);
if (getPeer() != nullptr)
{
openPluginWindow();
componentMovedOrResized (true, true);
}
} }
void setContentScaleFactor() void setContentScaleFactor()


Loading…
Cancel
Save