mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 22:53:14 +08:00
Remove usages of deprecated activeMachineName
This commit is contained in:
parent
5a25f8e050
commit
c3a373e2a2
@ -123,7 +123,18 @@ UM.Dialog
|
|||||||
}
|
}
|
||||||
Label
|
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
|
width: Math.floor(scroll.width / 3) | 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -200,7 +200,7 @@ Item
|
|||||||
visible: text != ""
|
visible: text != ""
|
||||||
text:
|
text:
|
||||||
{
|
{
|
||||||
var caption = catalog.i18nc("@action:label", "Printer") + ": " + Cura.MachineManager.activeMachineName;
|
var caption = catalog.i18nc("@action:label", "Printer") + ": " + Cura.MachineManager.activeMachine.name;
|
||||||
if (Cura.MachineManager.hasVariants)
|
if (Cura.MachineManager.hasVariants)
|
||||||
{
|
{
|
||||||
var activeVariantName = ""
|
var activeVariantName = ""
|
||||||
|
@ -32,7 +32,11 @@ Cura.ExpandablePopup
|
|||||||
{
|
{
|
||||||
return Cura.MachineManager.activeMachineNetworkGroupName
|
return Cura.MachineManager.activeMachineNetworkGroupName
|
||||||
}
|
}
|
||||||
return Cura.MachineManager.activeMachineName
|
if(Cura.MachineManager.activeStack != null)
|
||||||
|
{
|
||||||
|
return Cura.MachineManager.activeStack.name
|
||||||
|
}
|
||||||
|
return ""
|
||||||
}
|
}
|
||||||
source:
|
source:
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user