1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-30 02:50:05 +00:00

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

This commit is contained in:
reuk 2022-03-14 21:28:07 +00:00
parent fe744f8112
commit 092314deac
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

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