Browse Source

CURA-4525 send active build plate to legacy UM3 with Print over network

Jack Ha 7 years ago
parent
commit
228039545b

+ 2 - 1
plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py

@@ -675,7 +675,8 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
         Application.getInstance().showPrintMonitor.emit(True)
         self._print_finished = True
         self.writeStarted.emit(self)
-        self._gcode = getattr(Application.getInstance().getController().getScene(), "gcode_list")
+        active_build_plate = Application.getInstance().getBuildPlateModel().activeBuildPlate
+        self._gcode = getattr(Application.getInstance().getController().getScene(), "gcode_list")[active_build_plate]
 
         print_information = Application.getInstance().getPrintInformation()
         warnings = []  # There might be multiple things wrong. Keep a list of all the stuff we need to warn about.

+ 1 - 1
resources/qml/Actions.qml

@@ -306,7 +306,7 @@ Item
         id: arrangeAllBuildPlatesAction;
         text: catalog.i18nc("@action:inmenu menubar:edit","Arrange All Models To All Build Plates");
         //iconName: "document-open";
-        onTriggered: CuraApplication.arrangeObjectsToAllBuildPlates();
+        onTriggered: Printer.arrangeObjectsToAllBuildPlates();
     }
 
     Action