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:
parent
6f92906107
commit
bc660e8218
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue