Bugfix: Standalone Plugin without editor

While creating a unity plugin without editor (hasEditor() returns false), I realised the StandaloneFilterWindow cannot cope with that situation.

I did this modification in juce_StandaloneFilterWindow.h line 731ff, which works out of the box:

MainContentComponent (StandaloneFilterWindow& filterWindow)
    : owner (filterWindow), notification (this),
      editor (owner.getAudioProcessor()->hasEditor() ? owner.getAudioProcessor()->createEditorIfNeeded()
                                                     : new GenericAudioProcessorEditor (*owner.getAudioProcessor()))
{

For your consideration…

1 Like

Thanks, I’ll get that added.