Path: Fixed issue where GCodeEditorDialog wouldn't appear for some post processors
This commit is contained in:
parent
087853bfc5
commit
d9dda3fa1d
|
@ -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'''
|
||||
|
|
Loading…
Reference in New Issue
Block a user