mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 10:17:52 -06:00
Basic implementation of exporting all materials in a .zip archive
It seems to complain about the data types though. Contributes to issue CURA-8055.
This commit is contained in:
parent
e66783664b
commit
bdcaef134f
2 changed files with 25 additions and 4 deletions
|
@ -203,7 +203,7 @@ Item
|
|||
forceActiveFocus();
|
||||
exportAllMaterialsDialog.open();
|
||||
}
|
||||
enabled: Cura.MachineManager.activeMachine.supportsMaterialExport()
|
||||
enabled: Cura.MachineManager.activeMachine.supportsMaterialExport
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -389,7 +389,11 @@ Item
|
|||
selectExisting: false
|
||||
nameFilters: ["Material archives (*.zip)", "All files (*)"]
|
||||
folder: base.materialManagementModel.preferredExportAllPath
|
||||
//TODO: Implement onAccepted event to save the profiles.
|
||||
onAccepted:
|
||||
{
|
||||
base.materialManagementModel.exportAll(fileUrl);
|
||||
CuraApplication.setDefaultPath("dialog_material_path", folder);
|
||||
}
|
||||
}
|
||||
|
||||
MessageDialog
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue