mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:15:53 +08:00
Simplify preview icon logic
Contributes to CL-1153
This commit is contained in:
parent
ebb31409b8
commit
1494daf671
@ -65,11 +65,7 @@ Item
|
||||
case "error":
|
||||
return "../svg/aborted-icon.svg"
|
||||
case "wait_cleanup":
|
||||
if (printJob.state == "wait_cleanup" && printJob.timeTotal > printJob.timeElapsed)
|
||||
{
|
||||
return "../svg/aborted-icon.svg"
|
||||
}
|
||||
return "";
|
||||
return printJob.timeTotal > printJob.timeElapsed ? "../svg/aborted-icon.svg" : "";
|
||||
case "pausing":
|
||||
return "../svg/paused-icon.svg"
|
||||
case "paused":
|
||||
|
Loading…
x
Reference in New Issue
Block a user