Fix few more instances of old usage of fileUrl vs selectedFile

This commit is contained in:
Jaime van Kessel 2022-04-19 17:12:58 +02:00
parent f070a695b1
commit e85420f9fa
4 changed files with 6 additions and 6 deletions

View file

@ -95,7 +95,7 @@ Cura.MachineAction
onAccepted:
{
updateProgressDialog.visible = true;
activeOutputDevice.updateFirmware(fileUrl);
activeOutputDevice.updateFirmware(selectedFile);
}
}

View file

@ -40,7 +40,7 @@ UM.Dialog
}
}
onAccepted: loadModelFiles(base.fileUrls)
onAccepted: loadModelFiles(base.selectedFiles)
UM.Label
{

View file

@ -239,10 +239,10 @@ UM.ManagementPage
switch (result.status)
{
case "success":
messageDialog.text = catalog.i18nc("@info:status Don't translate the XML tag <filename>!", "Successfully imported material <filename>%1</filename>").arg(fileUrl);
messageDialog.text = catalog.i18nc("@info:status Don't translate the XML tag <filename>!", "Successfully imported material <filename>%1</filename>").arg(selectedFile);
break;
default:
messageDialog.text = catalog.i18nc("@info:status Don't translate the XML tags <filename> or <message>!", "Could not import material <filename>%1</filename>: <message>%2</message>").arg(fileUrl).arg(result.message);
messageDialog.text = catalog.i18nc("@info:status Don't translate the XML tags <filename> or <message>!", "Could not import material <filename>%1</filename>: <message>%2</message>").arg(selectedFile).arg(result.message);
break;
}
messageDialog.open();
@ -267,7 +267,7 @@ UM.ManagementPage
switch (result.status)
{
case "error":
messageDialog.text = catalog.i18nc("@info:status Don't translate the XML tags <filename> and <message>!", "Failed to export material to <filename>%1</filename>: <message>%2</message>").arg(fileUrl).arg(result.message);
messageDialog.text = catalog.i18nc("@info:status Don't translate the XML tags <filename> and <message>!", "Failed to export material to <filename>%1</filename>: <message>%2</message>").arg(selectedFile).arg(result.message);
break;
case "success":
messageDialog.text = catalog.i18nc("@info:status Don't translate the XML tag <filename>!", "Successfully exported material to <filename>%1</filename>").arg(result.path);

View file

@ -735,7 +735,7 @@ Window
nameFilters: ["Material archives (*.umm)", "All files (*)"]
onAccepted:
{
syncModel.exportAll(fileUrl);
syncModel.exportAll(selectedFile);
CuraApplication.setDefaultPath("dialog_material_path", folder);
materialsSyncDialog.hasExportedUsb = true;
}