mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 02:29:02 +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():
|
if self.getController().getActiveTool():
|
||||||
self.getController().setActiveTool(None)
|
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()
|
requestAddPrinter = pyqtSignal()
|
||||||
|
|
||||||
def _onActiveMachineChanged(self):
|
def _onActiveMachineChanged(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user