- now, Excellon and Gerber edited objects will have the source_code updated and ready to be saved

- the edited Gerber (or Excellon) object now is kept in the app after editing and the edited object is a new object
- added a message to the splash screen
This commit is contained in:
Marius Stanciu
2019-09-12 22:21:19 +03:00
committed by Marius
parent 295cba8539
commit 1a8784f5ab
5 changed files with 92 additions and 58 deletions

View File

@@ -3125,7 +3125,6 @@ class FlatCAMExcEditor(QtCore.QObject):
self.app.worker_task.emit({'fcn': self.new_edited_excellon,
'params': [self.edited_obj_name]})
self.new_tool_offset = self.exc_obj.tool_offset
# reset the tool table
@@ -3134,8 +3133,8 @@ class FlatCAMExcEditor(QtCore.QObject):
self.last_tool_selected = None
# delete the edited Excellon object which will be replaced by a new one having the edited content of the first
self.app.collection.set_active(self.exc_obj.options['name'])
self.app.collection.delete_active()
# self.app.collection.set_active(self.exc_obj.options['name'])
# self.app.collection.delete_active()
# restore GUI to the Selected TAB
# Remove anything else in the GUI
@@ -3193,6 +3192,8 @@ class FlatCAMExcEditor(QtCore.QObject):
app_obj.inform.emit(msg)
raise
# raise
excellon_obj.source_file = self.app.export_excellon(obj_name=outname, filename=None,
local_use=excellon_obj, use_thread=False)
with self.app.proc_container.new(_("Creating Excellon.")):