mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-29 22:23:12 -06:00
main.py: Check for other running instances before anything else
This commit is contained in:
parent
29b8a645db
commit
4d736c00fc
@ -78,6 +78,7 @@ def setup():
|
|||||||
from controller import mainController
|
from controller import mainController
|
||||||
from sessionmanager import sessionManager
|
from sessionmanager import sessionManager
|
||||||
app = widgetUtils.mainLoopObject()
|
app = widgetUtils.mainLoopObject()
|
||||||
|
check_pid()
|
||||||
if system == "Windows":
|
if system == "Windows":
|
||||||
if config.app["app-settings"]["donation_dialog_displayed"] == False:
|
if config.app["app-settings"]["donation_dialog_displayed"] == False:
|
||||||
donation()
|
donation()
|
||||||
@ -91,7 +92,6 @@ def setup():
|
|||||||
if hasattr(sm.view, "destroy"):
|
if hasattr(sm.view, "destroy"):
|
||||||
sm.view.destroy()
|
sm.view.destroy()
|
||||||
del sm
|
del sm
|
||||||
check_pid()
|
|
||||||
r = mainController.Controller()
|
r = mainController.Controller()
|
||||||
r.view.show()
|
r.view.show()
|
||||||
r.do_work()
|
r.do_work()
|
||||||
|
Loading…
Reference in New Issue
Block a user