mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 17:19:04 +08:00
Remove saveGCode method
This commit is contained in:
parent
36a2735c5c
commit
aa1889754e
@ -115,16 +115,6 @@ class PrinterApplication(QtApplication):
|
||||
if self.getController().getActiveTool():
|
||||
self.getController().setActiveTool(None)
|
||||
|
||||
@pyqtSlot(QUrl)
|
||||
def saveGCode(self, file):
|
||||
try:
|
||||
gcode = self.getController().getScene().gcode
|
||||
except AttributeError:
|
||||
return
|
||||
|
||||
with open(file.toLocalFile(), 'w') as f:
|
||||
f.write(gcode)
|
||||
|
||||
requestAddPrinter = pyqtSignal()
|
||||
|
||||
def _onActiveMachineChanged(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user