mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Code style
CURA-2235
This commit is contained in:
parent
6334f74fc6
commit
e43dbcd0b7
1 changed files with 7 additions and 5 deletions
|
@ -48,13 +48,15 @@ Rectangle
|
|||
{
|
||||
if(!printerConnected || !printerAcceptsCommands)
|
||||
return UM.Theme.getColor("text");
|
||||
if(Cura.MachineManager.printerOutputDevices[0].printerState == "maintenance")
|
||||
|
||||
switch(Cura.MachineManager.printerOutputDevices[0].printerState)
|
||||
{
|
||||
return UM.Theme.getColor("status_busy");
|
||||
} else if (Cura.MachineManager.printerOutputDevices[0].printerState == "error")
|
||||
{
|
||||
return UM.Theme.getColor("status_stopped");
|
||||
case "maintenance":
|
||||
return UM.Theme.getColor("status_busy");
|
||||
case "error":
|
||||
return UM.Theme.getColor("status_stopped");
|
||||
}
|
||||
|
||||
switch(Cura.MachineManager.printerOutputDevices[0].jobState)
|
||||
{
|
||||
case "printing":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue