mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-22 12:39:22 +08:00
Print montior also handles wait_for_cleanup correctly now
This commit is contained in:
parent
1e2147522d
commit
afed6eed93
@ -22,7 +22,7 @@ Rectangle
|
|||||||
{
|
{
|
||||||
if(!printerConnected)
|
if(!printerConnected)
|
||||||
return UM.Theme.getColor("status_offline")
|
return UM.Theme.getColor("status_offline")
|
||||||
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "printing" || Cura.MachineManager.printerOutputDevices[0].jobState == "pre_print")
|
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "printing" || Cura.MachineManager.printerOutputDevices[0].jobState == "pre_print" || Cura.MachineManager.printerOutputDevices[0].jobState == "wait_cleanup" )
|
||||||
return UM.Theme.getColor("status_busy")
|
return UM.Theme.getColor("status_busy")
|
||||||
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "ready" || Cura.MachineManager.printerOutputDevices[0].jobState == "")
|
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "ready" || Cura.MachineManager.printerOutputDevices[0].jobState == "")
|
||||||
return UM.Theme.getColor("status_ready")
|
return UM.Theme.getColor("status_ready")
|
||||||
@ -53,6 +53,10 @@ Rectangle
|
|||||||
{
|
{
|
||||||
return catalog.i18nc("@label:", "Preparing...")
|
return catalog.i18nc("@label:", "Preparing...")
|
||||||
}
|
}
|
||||||
|
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "wait_cleanup")
|
||||||
|
{
|
||||||
|
return catalog.i18nc("@label:", "Waiting for cleanup...")
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return " "
|
return " "
|
||||||
|
@ -108,7 +108,7 @@ Rectangle
|
|||||||
iconSource: {
|
iconSource: {
|
||||||
if(!printerConnected)
|
if(!printerConnected)
|
||||||
return UM.Theme.getIcon("tab_monitor")
|
return UM.Theme.getIcon("tab_monitor")
|
||||||
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "printing" || Cura.MachineManager.printerOutputDevices[0].jobState == "pre_print")
|
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "printing" || Cura.MachineManager.printerOutputDevices[0].jobState == "pre_print" || Cura.MachineManager.printerOutputDevices[0].jobState == "wait_cleanup" )
|
||||||
return UM.Theme.getIcon("tab_monitor_busy")
|
return UM.Theme.getIcon("tab_monitor_busy")
|
||||||
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "ready" || Cura.MachineManager.printerOutputDevices[0].jobState == "")
|
else if(Cura.MachineManager.printerOutputDevices[0].jobState == "ready" || Cura.MachineManager.printerOutputDevices[0].jobState == "")
|
||||||
return UM.Theme.getIcon("tab_monitor_connected")
|
return UM.Theme.getIcon("tab_monitor_connected")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user