mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 05:19:08 +08:00
Fix crash when saving ucp project
CURA-11403
This commit is contained in:
parent
0d40d2b07f
commit
6cd8196a96
@ -47,6 +47,11 @@ Cura.Menu
|
|||||||
enabled: UM.WorkspaceFileHandler.enabled && saveProjectMenu.model.count == 1
|
enabled: UM.WorkspaceFileHandler.enabled && saveProjectMenu.model.count == 1
|
||||||
onTriggered:
|
onTriggered:
|
||||||
{
|
{
|
||||||
|
const args = {
|
||||||
|
"filter_by_machine": false,
|
||||||
|
"file_type": "workspace",
|
||||||
|
"preferred_mimetypes": "application/vnd.ms-package.3dmanufacturing-3dmodel+xml",
|
||||||
|
};
|
||||||
if (UM.Preferences.getValue("cura/dialog_on_project_save"))
|
if (UM.Preferences.getValue("cura/dialog_on_project_save"))
|
||||||
{
|
{
|
||||||
saveWorkspaceDialog.args = args
|
saveWorkspaceDialog.args = args
|
||||||
@ -54,11 +59,6 @@ Cura.Menu
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const args = {
|
|
||||||
"filter_by_machine": false,
|
|
||||||
"file_type": "workspace",
|
|
||||||
"preferred_mimetypes": "application/vnd.ms-package.3dmanufacturing-3dmodel+xml",
|
|
||||||
};
|
|
||||||
UM.OutputDeviceManager.requestWriteToDevice("local_file", PrintInformation.jobName, args)
|
UM.OutputDeviceManager.requestWriteToDevice("local_file", PrintInformation.jobName, args)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user