mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -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:
|
onAccepted:
|
||||||
{
|
{
|
||||||
updateProgressDialog.visible = true;
|
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
|
UM.Label
|
||||||
{
|
{
|
||||||
|
|
|
@ -239,10 +239,10 @@ UM.ManagementPage
|
||||||
switch (result.status)
|
switch (result.status)
|
||||||
{
|
{
|
||||||
case "success":
|
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;
|
break;
|
||||||
default:
|
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;
|
break;
|
||||||
}
|
}
|
||||||
messageDialog.open();
|
messageDialog.open();
|
||||||
|
@ -267,7 +267,7 @@ UM.ManagementPage
|
||||||
switch (result.status)
|
switch (result.status)
|
||||||
{
|
{
|
||||||
case "error":
|
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;
|
break;
|
||||||
case "success":
|
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);
|
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 (*)"]
|
nameFilters: ["Material archives (*.umm)", "All files (*)"]
|
||||||
onAccepted:
|
onAccepted:
|
||||||
{
|
{
|
||||||
syncModel.exportAll(fileUrl);
|
syncModel.exportAll(selectedFile);
|
||||||
CuraApplication.setDefaultPath("dialog_material_path", folder);
|
CuraApplication.setDefaultPath("dialog_material_path", folder);
|
||||||
materialsSyncDialog.hasExportedUsb = true;
|
materialsSyncDialog.hasExportedUsb = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue