mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix few more instances of old usage of fileUrl vs selectedFile
This commit is contained in:
parent
f070a695b1
commit
e85420f9fa
4 changed files with 6 additions and 6 deletions
|
@ -95,7 +95,7 @@ Cura.MachineAction
|
|||
onAccepted:
|
||||
{
|
||||
updateProgressDialog.visible = true;
|
||||
activeOutputDevice.updateFirmware(fileUrl);
|
||||
activeOutputDevice.updateFirmware(selectedFile);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ UM.Dialog
|
|||
}
|
||||
}
|
||||
|
||||
onAccepted: loadModelFiles(base.fileUrls)
|
||||
onAccepted: loadModelFiles(base.selectedFiles)
|
||||
|
||||
UM.Label
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue