mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 21:15:56 +08:00
Show correct labels & status icon if print was aborted
CL-896
This commit is contained in:
parent
49aeb60e7d
commit
e2bcf4dfa8
@ -489,6 +489,10 @@ Component
|
|||||||
case "paused":
|
case "paused":
|
||||||
return "paused-icon.svg"
|
return "paused-icon.svg"
|
||||||
case "wait_cleanup":
|
case "wait_cleanup":
|
||||||
|
if(modelData.activePrintJob.timeElapsed < modelData.activePrintJob.timeTotal)
|
||||||
|
{
|
||||||
|
return "aborted-icon.svg"
|
||||||
|
}
|
||||||
return "approved-icon.svg"
|
return "approved-icon.svg"
|
||||||
case "wait_user_action":
|
case "wait_user_action":
|
||||||
return "aborted-icon.svg"
|
return "aborted-icon.svg"
|
||||||
@ -569,7 +573,11 @@ Component
|
|||||||
switch(modelData.activePrintJob.state)
|
switch(modelData.activePrintJob.state)
|
||||||
{
|
{
|
||||||
case "wait_cleanup":
|
case "wait_cleanup":
|
||||||
return catalog.i18nc("@label:status", "Finshed")
|
if(modelData.activePrintJob.timeTotal > modelData.activePrintJob.timeElapsed)
|
||||||
|
{
|
||||||
|
return catalog.i18nc("@label:status", "Aborted")
|
||||||
|
}
|
||||||
|
return catalog.i18nc("@label:status", "Finished")
|
||||||
case "pre_print":
|
case "pre_print":
|
||||||
case "sent_to_printer":
|
case "sent_to_printer":
|
||||||
return catalog.i18nc("@label:status", "Preparing")
|
return catalog.i18nc("@label:status", "Preparing")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user