mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 09:59:00 +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")
|
enabled: UM.WorkspaceFileHandler.enabled && CuraApplication.getPackageManager().allEnabledPackages.includes("3MFWriter")
|
||||||
onTriggered:
|
onTriggered:
|
||||||
{
|
{
|
||||||
if(UM.Preferences.getValue("cura/dialog_on_ucp_project_save"))
|
if (UM.Preferences.getValue("cura/dialog_on_ucp_project_save"))
|
||||||
{
|
{
|
||||||
CuraApplication.exportUcp()
|
CuraApplication.exportUcp()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var args = { "filter_by_machine": false,
|
const args = {
|
||||||
"file_type": "workspace",
|
"filter_by_machine": false,
|
||||||
"preferred_mimetypes": "application/x-ucp",
|
"file_type": "workspace",
|
||||||
"limit_mimetypes": ["application/x-ucp"]};
|
"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)
|
UM.OutputDeviceManager.requestWriteToDevice("local_file", PrintInformation.baseName, args)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user