mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Remove saveGCode method
This commit is contained in:
parent
36a2735c5c
commit
aa1889754e
1 changed files with 0 additions and 10 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue