From 4d736c00fcbfb1c6f4dcd9d76d11039e620220af Mon Sep 17 00:00:00 2001 From: Jose Manuel Delicado Date: Fri, 22 Jan 2021 18:50:09 +0100 Subject: [PATCH] main.py: Check for other running instances before anything else --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index 32e7cb1e..0bb3c802 100644 --- a/src/main.py +++ b/src/main.py @@ -78,6 +78,7 @@ def setup(): from controller import mainController from sessionmanager import sessionManager app = widgetUtils.mainLoopObject() + check_pid() if system == "Windows": if config.app["app-settings"]["donation_dialog_displayed"] == False: donation() @@ -91,7 +92,6 @@ def setup(): if hasattr(sm.view, "destroy"): sm.view.destroy() del sm - check_pid() r = mainController.Controller() r.view.show() r.do_work()