This makes it so that the application is actually shut down if another instance is detected. This should fix the "Pizza Oven is already running" message appearing when no instances appear to be running (but a hidden one actually is), which happens when the PO is already running message appears.
This also rearranges some of the startup code so that the main window is only ever created and updates are only checked when no instances are running.
(This branch was on my fork for a while, but I've only decided to PR it now.)
This makes it so that the application is actually shut down if another instance is detected. This should fix the "Pizza Oven is already running" message appearing when no instances appear to be running (but a hidden one actually is), which happens when the PO is already running message appears. This also rearranges some of the startup code so that the main window is only ever created and updates are only checked when no instances are running.
(This branch was on my fork for a while, but I've only decided to PR it now.)