mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Audio Plugin Host: Double-clicking on Audio/Midi Input/Output Node now opens the audio settings window
This commit is contained in:
parent
919e3e36ec
commit
a6b8ad0c75
1 changed files with 12 additions and 0 deletions
|
|
@ -162,6 +162,18 @@ PluginWindow* PluginWindow::getWindowFor (AudioProcessorGraph::Node* const node,
|
|||
auto* processor = node->getProcessor();
|
||||
AudioProcessorEditor* ui = nullptr;
|
||||
|
||||
if (auto* pluginInstance = dynamic_cast<AudioPluginInstance*> (processor))
|
||||
{
|
||||
auto description = pluginInstance->getPluginDescription();
|
||||
|
||||
if (description.pluginFormatName == "Internal")
|
||||
{
|
||||
getCommandManager().invokeDirectly (CommandIDs::showAudioSettings, false);
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
if (type == Normal)
|
||||
{
|
||||
ui = processor->createEditorIfNeeded();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue