Reintroduce hack for waiting state in monitor.

Some printers don't send the correct state it seems, so we have to have this hack back.

CURA-8764
This commit is contained in:
Remco Burema 2021-12-17 11:50:45 +01:00
parent a90d052f58
commit 0e3524cddb
No known key found for this signature in database
GPG Key ID: 215C49431D43F98C

View File

@ -73,6 +73,12 @@ Item
switch (printJob.state) switch (printJob.state)
{ {
case "wait_cleanup": case "wait_cleanup":
// This hack was removed previously. Then we found out that we don't get back 'aborted_wait_cleanup'
// for the UM2+C it seems. Will communicate this to other teams, in the mean time, put this back.
if (printJob.timeTotal > printJob.timeElapsed)
{
return catalog.i18nc("@label:status", "Aborted");
}
return catalog.i18nc("@label:status", "Finished"); return catalog.i18nc("@label:status", "Finished");
case "finished": case "finished":
return catalog.i18nc("@label:status", "Finished"); return catalog.i18nc("@label:status", "Finished");