mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 19:28:07 -06:00
Remove usages of deprecated activeMachineName
This commit is contained in:
parent
5a25f8e050
commit
c3a373e2a2
3 changed files with 19 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue