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 :

https://docs.juce.com/develop/classJUCEApplication.html#ae7f9d8176003e18a1b6f4c30a63fdbf6

1 Like

Awesome, thanks! I knew I saw it somewhere!