mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-20 03:29:06 +08:00
filename is basename without the printer info
CURA-11403
This commit is contained in:
parent
d2566d72ff
commit
942589d3a2
@ -64,7 +64,7 @@ class UCPDialog(QObject):
|
||||
device.writeSuccess.connect(lambda: self._onSuccess())
|
||||
device.writeFinished.connect(lambda: self._onFinished())
|
||||
|
||||
file_name = CuraApplication.getInstance().getPrintInformation().jobName
|
||||
file_name = CuraApplication.getInstance().getPrintInformation().baseName
|
||||
|
||||
try:
|
||||
device.requestWrite(nodes, file_name, ["application/x-ucp"], workspace_handler,
|
||||
|
@ -87,7 +87,7 @@ Cura.Menu
|
||||
"file_type": "workspace",
|
||||
"preferred_mimetypes": "application/x-ucp",
|
||||
"limit_mimetypes": ["application/x-ucp"]};
|
||||
UM.OutputDeviceManager.requestWriteToDevice("local_file", PrintInformation.jobName, args)
|
||||
UM.OutputDeviceManager.requestWriteToDevice("local_file", PrintInformation.baseName, args)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user