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:
Ghostkeeper 2021-06-09 16:35:51 +02:00
parent e66783664b
commit bdcaef134f
No known key found for this signature in database
GPG key ID: 14C3586CD2EFC5B9
2 changed files with 25 additions and 4 deletions

View file

@ -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