I have an application that minimizes to icon state when user press close. I want to make application show again when user tries to open the app, instead of just opening the app again.
I thought of using settings: A boolean value, true if the app is opened and false if it isn't but that would mean you should set it to false when user closes app and true in the load function. But since close event doesn't run when program crashes, that would make program un-openable (:D?), and i have no idea how to call events between two programs.
TL;DR: Show the app to user instead of opening it twice when user opens program again, just like Discord.
Thanks!