mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 10:59:01 +08:00
Fix extension when sending to printer
It should use the extension of the preferred format. Contributes to issue CURA-5097.
This commit is contained in:
parent
c9a23d5ca3
commit
6f9e0431bb
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user