فهرست منبع

- in Excellon UI protected the values that are common parameters from change on tool selection change

Marius Stanciu 6 سال پیش
والد
کامیت
ae22ddb516
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 2 1
      FlatCAMObj.py
  2. 1 0
      README.md

+ 2 - 1
FlatCAMObj.py

@@ -3028,7 +3028,8 @@ class FlatCAMExcellon(FlatCAMObj, Excellon):
     def storage_to_form(self, dict_storage):
     def storage_to_form(self, dict_storage):
         for form_key in self.form_fields:
         for form_key in self.form_fields:
             for storage_key in dict_storage:
             for storage_key in dict_storage:
-                if form_key == storage_key:
+                if form_key == storage_key and form_key not in \
+                        ["toolchangez", "startz", "endz", "ppname_e", "ppname_g"]:
                     try:
                     try:
                         self.form_fields[form_key].set_value(dict_storage[form_key])
                         self.form_fields[form_key].set_value(dict_storage[form_key])
                     except Exception as e:
                     except Exception as e:

+ 1 - 0
README.md

@@ -16,6 +16,7 @@ CAD program, and create G-Code for Isolation routing.
 - updated the Excellon Editor to add for each tool a 'data' dictionary
 - updated the Excellon Editor to add for each tool a 'data' dictionary
 - updated all FlatCAM tools to use the new confirmation message that show if the entered value is within range or outside
 - updated all FlatCAM tools to use the new confirmation message that show if the entered value is within range or outside
 - updated all FlatCAM tools to use the new confirmation message for QSpinBoxes, too
 - updated all FlatCAM tools to use the new confirmation message for QSpinBoxes, too
+- in Excellon UI protected the values that are common parameters from change on tool selection change
 
 
 16.02.2020
 16.02.2020