From a6b8ad0c75bb929b475d2ec14085ff0aabdae92d Mon Sep 17 00:00:00 2001 From: hogliux Date: Mon, 5 Jun 2017 09:58:49 +0100 Subject: [PATCH] Audio Plugin Host: Double-clicking on Audio/Midi Input/Output Node now opens the audio settings window --- .../audio plugin host/Source/GraphEditorPanel.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/examples/audio plugin host/Source/GraphEditorPanel.cpp b/examples/audio plugin host/Source/GraphEditorPanel.cpp index e5df99faef..bbd942381e 100644 --- a/examples/audio plugin host/Source/GraphEditorPanel.cpp +++ b/examples/audio plugin host/Source/GraphEditorPanel.cpp @@ -162,6 +162,18 @@ PluginWindow* PluginWindow::getWindowFor (AudioProcessorGraph::Node* const node, auto* processor = node->getProcessor(); AudioProcessorEditor* ui = nullptr; + if (auto* pluginInstance = dynamic_cast (processor)) + { + auto description = pluginInstance->getPluginDescription(); + + if (description.pluginFormatName == "Internal") + { + getCommandManager().invokeDirectly (CommandIDs::showAudioSettings, false); + + return nullptr; + } + } + if (type == Normal) { ui = processor->createEditorIfNeeded();