From 6f9e0431bb5352f6b63dead481f16621e6019f38 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 19 Mar 2018 15:17:10 +0100 Subject: [PATCH] Fix extension when sending to printer It should use the extension of the preferred format. Contributes to issue CURA-5097. --- plugins/UM3NetworkPrinting/ClusterUM3OutputDevice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/UM3NetworkPrinting/ClusterUM3OutputDevice.py b/plugins/UM3NetworkPrinting/ClusterUM3OutputDevice.py index 431adec145..eda5841310 100644 --- a/plugins/UM3NetworkPrinting/ClusterUM3OutputDevice.py +++ b/plugins/UM3NetworkPrinting/ClusterUM3OutputDevice.py @@ -197,7 +197,7 @@ class ClusterUM3OutputDevice(NetworkedPrinterOutputDevice): # Add user name to the print_job parts.append(self._createFormPart("name=owner", bytes(self._getUserName(), "utf-8"), "text/plain")) - file_name = "%s.gcode.gz" % Application.getInstance().getPrintInformation().jobName + file_name = Application.getInstance().getPrintInformation().jobName + "." + preferred_format["extension"] while not job.isFinished(): sleep(0.1)