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

AudioPluginHost: Avoid creating editor if hasEditor returns false

This commit is contained in:
reuk 2021-03-24 15:56:51 +00:00
parent 6f92906107
commit bc660e8218
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -202,8 +202,9 @@ private:
{
if (type == PluginWindow::Type::normal)
{
if (auto* ui = processor.createEditorIfNeeded())
return ui;
if (processor.hasEditor())
if (auto* ui = processor.createEditorIfNeeded())
return ui;
type = PluginWindow::Type::generic;
}