mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 17:15:56 +08:00
Code style
CURA-2235
This commit is contained in:
parent
6334f74fc6
commit
e43dbcd0b7
@ -48,13 +48,15 @@ Rectangle
|
|||||||
{
|
{
|
||||||
if(!printerConnected || !printerAcceptsCommands)
|
if(!printerConnected || !printerAcceptsCommands)
|
||||||
return UM.Theme.getColor("text");
|
return UM.Theme.getColor("text");
|
||||||
if(Cura.MachineManager.printerOutputDevices[0].printerState == "maintenance")
|
|
||||||
|
switch(Cura.MachineManager.printerOutputDevices[0].printerState)
|
||||||
{
|
{
|
||||||
return UM.Theme.getColor("status_busy");
|
case "maintenance":
|
||||||
} else if (Cura.MachineManager.printerOutputDevices[0].printerState == "error")
|
return UM.Theme.getColor("status_busy");
|
||||||
{
|
case "error":
|
||||||
return UM.Theme.getColor("status_stopped");
|
return UM.Theme.getColor("status_stopped");
|
||||||
}
|
}
|
||||||
|
|
||||||
switch(Cura.MachineManager.printerOutputDevices[0].jobState)
|
switch(Cura.MachineManager.printerOutputDevices[0].jobState)
|
||||||
{
|
{
|
||||||
case "printing":
|
case "printing":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user