From: daid Date: Mon, 25 Nov 2013 09:45:50 +0000 (+0100) Subject: Prevent 2 instances of the same version starting on windows, and instead load the... X-Git-Tag: 14.01~65 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=b866ffad5dcb480d0b0422ce5c270f5f1d12918c;p=cura.git Prevent 2 instances of the same version starting on windows, and instead load the file in the previous instance trough UDP sockets. --- diff --git a/Cura/gui/app.py b/Cura/gui/app.py index e557c2ec..106bdab1 100644 --- a/Cura/gui/app.py +++ b/Cura/gui/app.py @@ -22,7 +22,7 @@ class CuraApp(wx.App): self.mainWindow = None self.splash = None self.loadFiles = files - + if sys.platform.startswith('win') and len(files) > 0: #Check for an already running instance, if another instance is running load files in there from Cura.util import version