My plugin host app can "open plugin GUI" once successfully, but has trouble opening it a second time..?

I’ve got a plugin host app in JUCE 8, and it scans plugins on the users system.

There is also feature to load a plugin into an FX Chain, and then a button “show plugin GUI”.
The plugin GUI appears successfully the first time I show it, so I close that window, but does not appear the second time when I click “show plugin GUI”.

I tried the re-creation approach… so destroy the plugin GUI window, then recreate it, and then tried just hiding the plugin GUI and unhiding it, but that didn’t seem to work either.

Whats a good way to approach this?

Does this work for you in the AudioPluginHost? If so, you could check how editor windows are opened there, and replicate the approach in your own app.

1 Like

got it… I was hiding the plugin window. It was opening, closing, opening again, but not closing. Also I had a rogue flag that wasn’t being reset.
I went back to creating-destroying and sorted the flag out, and it seems to work now :+1: