Sfoglia il codice sorgente

- fixed the parsing of the Manufacturing files when double clicking them and they are registered with FlatCAM
- fixed showing the GUI when some settings (maximized_GUI) are missing from QSettings

Marius Stanciu 6 anni fa
parent
commit
f432b065fa
2 ha cambiato i file con 9 aggiunte e 1 eliminazioni
  1. 6 0
      FlatCAMApp.py
  2. 3 1
      README.md

+ 6 - 0
FlatCAMApp.py

@@ -2439,6 +2439,8 @@ class App(QtCore.QObject):
                 self.ui.showMaximized()
             else:
                 self.ui.show()
+        else:
+            self.ui.show()
 
         # #####################################################################################
         # ########################## START-UP ARGUMENTS #######################################
@@ -2580,6 +2582,7 @@ class App(QtCore.QObject):
                 proc_arg = argument.lower()
                 for ext in exc_list:
                     proc_ext = ext.replace(' ', '')
+                    proc_ext = '.%s' % proc_ext
                     if proc_ext.lower() in proc_arg and proc_ext != '':
                         file_name = str(argument)
                         if file_name == "":
@@ -2591,7 +2594,9 @@ class App(QtCore.QObject):
                 gco_list = self.ui.fa_defaults_form.fa_gcode_group.gco_list_text.get_value().split(',')
                 for ext in gco_list:
                     proc_ext = ext.replace(' ', '')
+                    proc_ext = '.%s' % proc_ext
                     if proc_ext.lower() in proc_arg and proc_ext != '':
+                        print(proc_ext, proc_arg)
                         file_name = str(argument)
                         if file_name == "":
                             self.inform.emit(_("Open GCode file failed."))
@@ -2602,6 +2607,7 @@ class App(QtCore.QObject):
                 grb_list = self.ui.fa_defaults_form.fa_gerber_group.grb_list_text.get_value().split(',')
                 for ext in grb_list:
                     proc_ext = ext.replace(' ', '')
+                    proc_ext = '.%s' % proc_ext
                     if proc_ext.lower() in proc_arg and proc_ext != '':
                         file_name = str(argument)
                         if file_name == "":

+ 3 - 1
README.md

@@ -11,7 +11,9 @@ CAD program, and create G-Code for Isolation routing.
 
 18.09.2019
 
-- added more funtionality to the Extension registration with FLatCAM and added to the GUI in Edit -> Preferences -> Utilities
+- added more functionality to the Extension registration with FLatCAM and added to the GUI in Edit -> Preferences -> Utilities
+- fixed the parsing of the Manufacturing files when double clicking them and they are registered with FlatCAM
+- fixed showing the GUI when some settings (maximized_GUI) are missing from QSettings
 
 17.09.2019