mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 01:07:52 -06:00
Code-style
This commit is contained in:
parent
0e7893f71b
commit
0061e1329c
1 changed files with 1 additions and 6 deletions
|
@ -50,27 +50,22 @@ UM.Dialog
|
||||||
return catalog.i18nc("@label","Updating firmware.")
|
return catalog.i18nc("@label","Updating firmware.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
switch (manager.errorCode)
|
switch (manager.errorCode)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
//: Firmware update status label
|
//: Firmware update status label
|
||||||
return catalog.i18nc("@label","Firmware update failed due to an unknown error.")
|
return catalog.i18nc("@label","Firmware update failed due to an unknown error.")
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
//: Firmware update status label
|
//: Firmware update status label
|
||||||
return catalog.i18nc("@label","Firmware update failed due to an communication error.")
|
return catalog.i18nc("@label","Firmware update failed due to an communication error.")
|
||||||
|
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
//: Firmware update status label
|
//: Firmware update status label
|
||||||
return catalog.i18nc("@label","Firmware update failed due to an input/output error.")
|
return catalog.i18nc("@label","Firmware update failed due to an input/output error.")
|
||||||
|
|
||||||
case 4:
|
case 4:
|
||||||
//: Firmware update status label
|
//: Firmware update status label
|
||||||
return catalog.i18nc("@label","Firmware update failed due to missing firmware.")
|
return catalog.i18nc("@label","Firmware update failed due to missing firmware.")
|
||||||
|
|
||||||
default:
|
default:
|
||||||
//: Firmware update status label
|
//: Firmware update status label
|
||||||
return catalog.i18nc("@label", "Unknown error code: %1").arg(manager.errorCode)
|
return catalog.i18nc("@label", "Unknown error code: %1").arg(manager.errorCode)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue