Path: Fixed issue where GCodeEditorDialog wouldn't appear for some post processors

This commit is contained in:
drallod 2017-01-23 10:15:05 -06:00 committed by Yorik van Havre
parent 087853bfc5
commit d9dda3fa1d

View File

@ -152,7 +152,12 @@ def editor(gcode):
'''pops up a handy little editor to look at the code output '''
dia = GCodeEditorDialog()
dia.editor.setText(gcode)
# result = dia.exec_()
result = dia.exec_()
if result: # If user selected 'OK' get modified G Code
final = dia.editor.toPlainText()
else:
final = gcode
return final
def fcoms(string,commentsym):
''' filter and rebuild comments with user preferred comment symbol'''