Implement default path for exporting all materials

It needs to be a removable drive if one is available, or else just the local file paths.

Contributes to issue CURA-8055.
This commit is contained in:
Ghostkeeper 2021-06-08 17:36:25 +02:00
parent abba3bdd10
commit e66783664b
No known key found for this signature in database
GPG key ID: 14C3586CD2EFC5B9
2 changed files with 30 additions and 2 deletions

View file

@ -388,7 +388,7 @@ Item
title: catalog.i18nc("@title:window", "Export All Materials")
selectExisting: false
nameFilters: ["Material archives (*.zip)", "All files (*)"]
folder: CuraApplication.getDefaultPath("dialog_material_path") //TODO: Implement preference for removable drives.
folder: base.materialManagementModel.preferredExportAllPath
//TODO: Implement onAccepted event to save the profiles.
}