Просмотр исходного кода

- ability to double click the FlatConfig files and open them in the FlatCAM Code Editor - fixed and verified

Marius Stanciu 7 лет назад
Родитель
Сommit
322a63ef3b
2 измененных файлов с 5 добавлено и 3 удалено
  1. 4 3
      FlatCAMApp.py
  2. 1 0
      README.md

+ 4 - 3
FlatCAMApp.py

@@ -1615,9 +1615,10 @@ class App(QtCore.QObject):
                     if file_name == "":
                         self.inform.emit("Open Config file failed.")
                     else:
-                        run_from_arg = True
-                        self.worker_task.emit({'fcn': self.open_config_file,
-                                               'params': [file_name, run_from_arg]})
+                        # run_from_arg = True
+                        # self.worker_task.emit({'fcn': self.open_config_file,
+                        #                        'params': [file_name, run_from_arg]})
+                        self.open_config_file(file_name, run_from_arg=True)
                 except Exception as e:
                     log.debug("Could not open FlatCAM Config file as App parameter due: %s" % str(e))
 

+ 1 - 0
README.md

@@ -18,6 +18,7 @@ CAD program, and create G-Code for Isolation routing.
 - added ability to double click the FlatConfig files and open them in the FlatCAM Code Editor (to be verified)
 - when saving a file from Code Editor and there is no object active then the OpenFileDialog filters are reset to FlatConfig files.
 - reverted a change in GCode that might affect Gerber polarity change in Gerber parser
+- ability to double click the FlatConfig files and open them in the FlatCAM Code Editor - fixed and verified
 
 23.02.2019