Explorar el Código

- made available only for Linux and Windows (not OSX) the starting of the thread that checks if another instance of FlatCAM is already running at the launch of FLatCAM

Marius Stanciu hace 6 años
padre
commit
e0825bfce3
Se han modificado 3 ficheros con 10 adiciones y 8 borrados
  1. 9 8
      FlatCAMApp.py
  2. 1 0
      README.md
  3. 0 0
      share/dark_resources/markarea32.png

+ 9 - 8
FlatCAMApp.py

@@ -259,14 +259,15 @@ class App(QtCore.QObject):
         # Setup the listening thread for another instance launching with args #####
         # #########################################################################
 
-        # make sure the thread is stored by using a self. otherwise it's garbage collected
-        self.th = QtCore.QThread()
-        self.th.start(priority=QtCore.QThread.LowestPriority)
-
-        self.new_launch = ArgsThread()
-        self.new_launch.open_signal[list].connect(self.on_startup_args)
-        self.new_launch.moveToThread(self.th)
-        self.new_launch.start.emit()
+        if sys.platform == 'win32' or sys.platform == 'linux':
+            # make sure the thread is stored by using a self. otherwise it's garbage collected
+            self.th = QtCore.QThread()
+            self.th.start(priority=QtCore.QThread.LowestPriority)
+
+            self.new_launch = ArgsThread()
+            self.new_launch.open_signal[list].connect(self.on_startup_args)
+            self.new_launch.moveToThread(self.th)
+            self.new_launch.start.emit()
 
         # ############################################################################
         # # ################# OS-specific ############################################

+ 1 - 0
README.md

@@ -13,6 +13,7 @@ CAD program, and create G-Code for Isolation routing.
 
 - started to rework the NCC Tool GUI in preparation for adding a Tool DB feature
 - for auto-completer, now clicking an entry in the completer popup will select that entry and insert it
+- made available only for Linux and Windows (not OSX) the starting of the thread that checks if another instance of FlatCAM is already running at the launch of FLatCAM
 
 1.01.2020
 

+ 0 - 0
share/dark_resources/makearea32.png → share/dark_resources/markarea32.png