Single instance only standalone

I’m looking for a way to limit the amount of instances of my standalone app to just one. If a user tries to open another copy of the app I’d like it to ideally just bring the currently opened app to the forefront.

I swear I saw an option for this in JUCE somewhere but I can’t seem to find it anymore, could someone point me in the right direction please?

Seems to be a virtual method in JUCEApplication :

1 Like

Awesome, thanks! I knew I saw it somewhere!