Skip to content

Commit

Permalink
accidentally removed the changes to PluginEditor.cpp via merge, resto…
Browse files Browse the repository at this point in the history
…ring changes
  • Loading branch information
RachelMaryamLocke committed Oct 17, 2023
1 parent ef2c14d commit fae14b3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/gui/PluginEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ PluginEditor::~PluginEditor()
juce::LookAndFeel::setDefaultLookAndFeel (nullptr);
}

EQHelpers& PluginEditor::getProcessorHelper()
{
auto& tools = std::get<0>(plugin.getProcessor().getTools());
return tools.getHelper();
}

void PluginEditor::openGLChangeCallback (chowdsp::GlobalPluginSettings::SettingID settingID)
{
if (settingID != openGLSettingID)
Expand Down Expand Up @@ -110,7 +116,7 @@ void PluginEditor::refreshEditor()
auto& pluginState = plugin.getState();

if constexpr (std::is_same_v<ToolType, dsp::eq::EQProcessor>)
editorComponent = std::make_unique<eq::EQEditor> (pluginState, *pluginState.params.eqParams, hostContextProvider);
editorComponent = std::make_unique<eq::EQEditor> (pluginState, *pluginState.params.eqParams, hostContextProvider, getProcessorHelper());
else if constexpr (std::is_same_v<ToolType, dsp::waveshaper::WaveshaperProcessor>)
editorComponent = std::make_unique<waveshaper::WaveshaperEditor> (pluginState, *pluginState.params.waveshaperParams, hostContextProvider);
else if constexpr (std::is_same_v<ToolType, dsp::signal_gen::SignalGeneratorProcessor>)
Expand Down

0 comments on commit fae14b3

Please sign in to comment.