mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 00:45: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":
|
||||
return "paused-icon.svg"
|
||||
case "wait_cleanup":
|
||||
if(modelData.activePrintJob.timeElapsed < modelData.activePrintJob.timeTotal)
|
||||
{
|
||||
return "aborted-icon.svg"
|
||||
}
|
||||
return "approved-icon.svg"
|
||||
case "wait_user_action":
|
||||
return "aborted-icon.svg"
|
||||
@ -569,7 +573,11 @@ Component
|
||||
switch(modelData.activePrintJob.state)
|
||||
{
|
||||
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 "sent_to_printer":
|
||||
return catalog.i18nc("@label:status", "Preparing")
|
||||
|
Loading…
x
Reference in New Issue
Block a user