mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 01:25:51 +08:00
Fix job name
This commit is contained in:
parent
1ec2ac4118
commit
7398f08b27
@ -194,7 +194,6 @@ class CloudOutputDevice(UltimakerNetworkedPrinterOutputDevice):
|
|||||||
## Handler for when the print job was created locally.
|
## Handler for when the print job was created locally.
|
||||||
# It can now be sent over the cloud.
|
# It can now be sent over the cloud.
|
||||||
def _onPrintJobCreated(self, job: WriteFileJob) -> None:
|
def _onPrintJobCreated(self, job: WriteFileJob) -> None:
|
||||||
self._progress.show()
|
|
||||||
self._tool_path = job.getOutput()
|
self._tool_path = job.getOutput()
|
||||||
request = CloudPrintJobUploadRequest(
|
request = CloudPrintJobUploadRequest(
|
||||||
job_name=job.getFileName(),
|
job_name=job.getFileName(),
|
||||||
|
@ -19,14 +19,14 @@ class ExportFileJob(WriteFileJob):
|
|||||||
Logger.log("e", "Missing file or mesh writer!")
|
Logger.log("e", "Missing file or mesh writer!")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
super().__init__(self._mesh_format_handler.writer, self._mesh_format_handler.createStream(), nodes,
|
||||||
|
self._mesh_format_handler.file_mode)
|
||||||
|
|
||||||
# Determine the filename.
|
# Determine the filename.
|
||||||
job_name = CuraApplication.getInstance().getPrintInformation().jobName
|
job_name = CuraApplication.getInstance().getPrintInformation().jobName
|
||||||
extension = self._mesh_format_handler.preferred_format.get("extension", "")
|
extension = self._mesh_format_handler.preferred_format.get("extension", "")
|
||||||
self.setFileName(f"{job_name}.{extension}")
|
self.setFileName(f"{job_name}.{extension}")
|
||||||
|
|
||||||
super().__init__(self._mesh_format_handler.writer, self._mesh_format_handler.createStream(), nodes,
|
|
||||||
self._mesh_format_handler.file_mode)
|
|
||||||
|
|
||||||
## Get the mime type of the selected export file type.
|
## Get the mime type of the selected export file type.
|
||||||
def getMimeType(self) -> str:
|
def getMimeType(self) -> str:
|
||||||
return self._mesh_format_handler.mime_type
|
return self._mesh_format_handler.mime_type
|
||||||
|
Loading…
x
Reference in New Issue
Block a user