- SolderPaste Tool - fixed the UI

- SolderPaste Tool - fixed various issues
This commit is contained in:
Marius Stanciu
2020-12-12 07:19:02 +02:00
committed by Marius
parent e2ea230492
commit 0bdd0a8faf
3 changed files with 201 additions and 202 deletions

View File

@@ -681,7 +681,12 @@ class CNCJobObject(FlatCAMObj, CNCjob):
gc = self.export_gcode(preamble=preamble, postamble=postamble, to_file=True)
# set the Source File attribute with the calculated GCode
self.source_file = gc.getvalue()
try:
# gc is StringIO
self.source_file = gc.getvalue()
except AttributeError:
# gc is text
self.source_file = gc
self.ui.al_mode_radio.set_value(self.options['al_mode'])
self.on_controller_change()