mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 18:09:02 +08:00
Use correct mime-type
CURA-11403m
This commit is contained in:
parent
62aff0be12
commit
5f7a1c7b7b
@ -77,16 +77,18 @@ Cura.Menu
|
||||
enabled: UM.WorkspaceFileHandler.enabled && CuraApplication.getPackageManager().allEnabledPackages.includes("3MFWriter")
|
||||
onTriggered:
|
||||
{
|
||||
if(UM.Preferences.getValue("cura/dialog_on_ucp_project_save"))
|
||||
if (UM.Preferences.getValue("cura/dialog_on_ucp_project_save"))
|
||||
{
|
||||
CuraApplication.exportUcp()
|
||||
}
|
||||
else
|
||||
{
|
||||
var args = { "filter_by_machine": false,
|
||||
"file_type": "workspace",
|
||||
"preferred_mimetypes": "application/x-ucp",
|
||||
"limit_mimetypes": ["application/x-ucp"]};
|
||||
const args = {
|
||||
"filter_by_machine": false,
|
||||
"file_type": "workspace",
|
||||
"preferred_mimetypes": "application/vnd.ms-package.3dmanufacturing-3dmodel+xml",
|
||||
"limit_mimetypes": ["application/vnd.ms-package.3dmanufacturing-3dmodel+xml"],
|
||||
};
|
||||
UM.OutputDeviceManager.requestWriteToDevice("local_file", PrintInformation.baseName, args)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user