mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 14:55:03 -06:00
for preference to open dialo while saving ucp
CURA-11403
This commit is contained in:
parent
ce3baa15e2
commit
d2566d72ff
3 changed files with 22 additions and 5 deletions
|
@ -77,7 +77,18 @@ Cura.Menu
|
|||
enabled: UM.WorkspaceFileHandler.enabled && CuraApplication.getPackageManager().allEnabledPackages.includes("3MFWriter")
|
||||
onTriggered:
|
||||
{
|
||||
CuraApplication.exportUcp()
|
||||
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"]};
|
||||
UM.OutputDeviceManager.requestWriteToDevice("local_file", PrintInformation.jobName, args)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue