From ae22ddb516a9090c8c8f60e3af1b9e258f367511 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Mon, 17 Feb 2020 05:19:21 +0200 Subject: [PATCH] - in Excellon UI protected the values that are common parameters from change on tool selection change --- FlatCAMObj.py | 3 ++- README.md | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/FlatCAMObj.py b/FlatCAMObj.py index 1e0119e5..4c71180b 100644 --- a/FlatCAMObj.py +++ b/FlatCAMObj.py @@ -3028,7 +3028,8 @@ class FlatCAMExcellon(FlatCAMObj, Excellon): def storage_to_form(self, dict_storage): for form_key in self.form_fields: 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: self.form_fields[form_key].set_value(dict_storage[form_key]) except Exception as e: diff --git a/README.md b/README.md index 09b4835c..a1c37433 100644 --- a/README.md +++ b/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 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 +- in Excellon UI protected the values that are common parameters from change on tool selection change 16.02.2020