mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-04 03:40:07 +00:00
Fixed an issue instantiating plug-ins from popup menu results in the AudioPluginHost
This commit is contained in:
parent
1dd3b6a711
commit
677e03ca15
1 changed files with 3 additions and 3 deletions
|
|
@ -368,15 +368,15 @@ void MainHostWindow::addPluginsToMenu (PopupMenu& m)
|
|||
|
||||
m.addSeparator();
|
||||
|
||||
auto pluginDescriptionsToShow = knownPluginList.getTypes();
|
||||
pluginDescriptions = knownPluginList.getTypes();
|
||||
|
||||
// This avoids showing the internal types again later on in the list
|
||||
pluginDescriptionsToShow.removeIf ([] (PluginDescription& desc)
|
||||
pluginDescriptions.removeIf ([] (PluginDescription& desc)
|
||||
{
|
||||
return desc.pluginFormatName == InternalPluginFormat::getIdentifier();
|
||||
});
|
||||
|
||||
KnownPluginList::addToMenu (m, pluginDescriptionsToShow, pluginSortMethod);
|
||||
KnownPluginList::addToMenu (m, pluginDescriptions, pluginSortMethod);
|
||||
}
|
||||
|
||||
PluginDescription MainHostWindow::getChosenType (const int menuID) const
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue