Implement functionality of export to USB button

It now creates a similar dialogue of what the old button did. The dialogue is no longer necessary in the materials page, so I've moved it to here specifically.

Contributes to issue CURA-8609.
This commit is contained in:
Ghostkeeper 2021-10-06 15:20:26 +02:00
parent e5dc90a519
commit 038db1fc4f
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
3 changed files with 21 additions and 13 deletions

View file

@ -382,19 +382,6 @@ Item
}
}
FileDialog
{
id: exportAllMaterialsDialog
title: catalog.i18nc("@title:window", "Export All Materials")
selectExisting: false
nameFilters: ["Material archives (*.umm)", "All files (*)"]
onAccepted:
{
base.materialManagementModel.exportAll(fileUrl);
CuraApplication.setDefaultPath("dialog_material_path", folder);
}
}
MessageDialog
{
id: messageDialog