Remove usages of deprecated activeMachineName

This commit is contained in:
Jaime van Kessel 2019-05-03 13:38:06 +02:00
parent 5a25f8e050
commit c3a373e2a2
3 changed files with 19 additions and 4 deletions

View file

@ -123,7 +123,18 @@ UM.Dialog
}
Label
{
text: Cura.MachineManager.activeMachineNetworkGroupName != "" ? Cura.MachineManager.activeMachineNetworkGroupName : Cura.MachineManager.activeMachineName
text:
{
if(Cura.MachineManager.activeMachineNetworkGroupName != "")
{
return Cura.MachineManager.activeMachineNetworkGroupName
}
if(Cura.MachineManager.activeMachine)
{
return Cura.MachineManager.activeMachine.name
}
return ""
}
width: Math.floor(scroll.width / 3) | 0
}
}