Fix export material to usb

CURA-9122
This commit is contained in:
Jaime van Kessel 2022-04-20 11:23:35 +02:00
parent 15b16e3e45
commit 271868eafd

View File

@ -701,7 +701,7 @@ Window
{ {
if(!materialsSyncDialog.hasExportedUsb) if(!materialsSyncDialog.hasExportedUsb)
{ {
exportUsbDialog.folder = syncModel.getPreferredExportAllPath(); exportUsbDialog.currentFolder = syncModel.getPreferredExportAllPath();
exportUsbDialog.open(); exportUsbDialog.open();
} }
else else
@ -733,6 +733,7 @@ Window
{ {
title: catalog.i18nc("@title:window", "Export All Materials") title: catalog.i18nc("@title:window", "Export All Materials")
nameFilters: ["Material archives (*.umm)", "All files (*)"] nameFilters: ["Material archives (*.umm)", "All files (*)"]
fileMode: FileDialog.SaveFile
onAccepted: onAccepted:
{ {
syncModel.exportAll(selectedFile); syncModel.exportAll(selectedFile);