- fixed the App.on_view_source() method for CNCJob objects: the Gcode will now contain the Prepend and Append code from the Edit -> Preferences -> CNCJob -> CNCJob Options

This commit is contained in:
Marius Stanciu
2019-09-16 04:10:02 +03:00
committed by Marius
parent 61120911c6
commit 4b28d980fd
2 changed files with 5 additions and 1 deletions

View File

@@ -8240,7 +8240,10 @@ class App(QtCore.QObject):
# then append the text from GCode to the text editor
if obj.kind == 'cncjob':
try:
file = obj.export_gcode(preamble='', postamble='', to_file=True)
file = obj.export_gcode(
preamble=self.defaults["cncjob_prepend"],
postamble=self.defaults["cncjob_append"],
to_file=True)
if file == 'fail':
return 'fail'
except AttributeError: