TekkaGB / PizzaOven

A Pizza Tower Mod Manager
GNU General Public License v3.0
22 stars 13 forks source link

Fix "ghost" PO instances #23

Closed CST1229 closed 1 year ago

CST1229 commented 1 year ago

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.)