mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
VST3 Host: Only call IPlugView::removed() if a previous call to attached() succeeded
This commit is contained in:
parent
92f350e617
commit
a3c55a967f
1 changed files with 10 additions and 3 deletions
|
|
@ -1365,7 +1365,9 @@ struct VST3PluginWindow : public AudioProcessorEditor,
|
|||
embeddedComponent.removeClient();
|
||||
#endif
|
||||
|
||||
warnOnFailure (view->removed());
|
||||
if (attachedCalled)
|
||||
warnOnFailure (view->removed());
|
||||
|
||||
warnOnFailure (view->setFrame (nullptr));
|
||||
|
||||
processor.editorBeingDeleted (this);
|
||||
|
|
@ -1573,7 +1575,12 @@ private:
|
|||
return;
|
||||
}
|
||||
|
||||
warnOnFailure (view->attached ((void*) pluginHandle, defaultVST3WindowType));
|
||||
const auto attachedResult = view->attached ((void*) pluginHandle, defaultVST3WindowType);
|
||||
ignoreUnused (warnOnFailure (attachedResult));
|
||||
|
||||
if (attachedResult == kResultOk)
|
||||
attachedCalled = true;
|
||||
|
||||
updatePluginScale();
|
||||
}
|
||||
}
|
||||
|
|
@ -1641,7 +1648,7 @@ private:
|
|||
#endif
|
||||
|
||||
HandleFormat pluginHandle = {};
|
||||
bool recursiveResize = false, isInOnSize = false;
|
||||
bool recursiveResize = false, isInOnSize = false, attachedCalled = false;
|
||||
|
||||
ComponentPeer* currentPeer = nullptr;
|
||||
Steinberg::IPlugViewContentScaleSupport* scaleInterface = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue