mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 14:55:03 -06:00
Use correct mime-type
CURA-11403m
This commit is contained in:
parent
62aff0be12
commit
5f7a1c7b7b
1 changed files with 7 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue