- renamed Calibrate Excellon Tool to a simpler Calibrate Tool
- Calibrate Tool - when generating verification GCode it will always load into an Editor from which it can be edited and/or saved. On save the editor will close.
This commit is contained in:
@@ -183,7 +183,7 @@ class TextEditor(QtWidgets.QWidget):
|
||||
self.code_editor.setPlainText(self.code_edited)
|
||||
file.close()
|
||||
|
||||
def handleSaveGCode(self, name=None, filt=None):
|
||||
def handleSaveGCode(self, name=None, filt=None, callback=None):
|
||||
self.app.report_usage("handleSaveGCode()")
|
||||
|
||||
if filt:
|
||||
@@ -235,6 +235,9 @@ class TextEditor(QtWidgets.QWidget):
|
||||
self.app.file_saved.emit("cncjob", filename)
|
||||
self.app.inform.emit('%s: %s' % (_("Saved to"), str(filename)))
|
||||
|
||||
if callback is not None:
|
||||
callback()
|
||||
|
||||
def handleFindGCode(self):
|
||||
self.app.report_usage("handleFindGCode()")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user