selectExisting is replaced with using fileMode:FileDialog.OpenFile in QT6. This forces selecting an existing file.

This is also the default value in QT6 so this line can be removed without changing the functionality
This commit is contained in:
j.delarago 2022-04-12 10:21:34 +02:00
parent 94e5a4e1db
commit 3674af01b7
2 changed files with 0 additions and 2 deletions

View file

@ -92,7 +92,6 @@ Cura.MachineAction
id: customFirmwareDialog
title: catalog.i18nc("@title:window", "Select custom firmware")
nameFilters: "Firmware image files (*.hex)"
selectExisting: true
onAccepted:
{
updateProgressDialog.visible = true;

View file

@ -732,7 +732,6 @@ Window
property variant exportUsbDialog: FileDialog
{
title: catalog.i18nc("@title:window", "Export All Materials")
selectExisting: false
nameFilters: ["Material archives (*.umm)", "All files (*)"]
onAccepted:
{