1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

AudioPluginHost: Only add editor menu item for plugins with editors

This commit is contained in:
reuk 2021-08-18 11:51:54 +01:00
parent 31c7f42e55
commit 12fd1479a8
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -405,7 +405,9 @@ struct GraphEditorPanel::PluginComponent : public Component,
menu->addItem (3, "Toggle Bypass");
menu->addSeparator();
menu->addItem (10, "Show plugin GUI");
if (getProcessor()->hasEditor())
menu->addItem (10, "Show plugin GUI");
menu->addItem (11, "Show all programs");
menu->addItem (12, "Show all parameters");
menu->addItem (13, "Show debug log");