mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06:00
Remove deprecated currentExtruderPositions
CURA-6858
This commit is contained in:
parent
c62ff262ed
commit
227b76d6f0
3 changed files with 9 additions and 12 deletions
|
@ -143,27 +143,27 @@ UM.Dialog
|
|||
{
|
||||
width: parent.width
|
||||
height: childrenRect.height
|
||||
model: Cura.MachineManager.currentExtruderPositions
|
||||
model: Cura.MachineManager.activeMachine.extruderList
|
||||
delegate: Column
|
||||
{
|
||||
height: childrenRect.height
|
||||
width: parent.width
|
||||
property string variantName:
|
||||
{
|
||||
var extruder = Cura.MachineManager.activeMachine.extruderList[modelData]
|
||||
var extruder = modelData
|
||||
var variant_name = extruder.variant.name
|
||||
return (variant_name !== undefined) ? variant_name : ""
|
||||
}
|
||||
property string materialName:
|
||||
{
|
||||
var extruder = Cura.MachineManager.activeMachine.extruderList[modelData]
|
||||
var extruder = modelData
|
||||
var material_name = extruder.material.name
|
||||
return (material_name !== undefined) ? material_name : ""
|
||||
}
|
||||
Label
|
||||
{
|
||||
text: {
|
||||
var extruder = Number(modelData)
|
||||
var extruder = Number(modelData.position)
|
||||
var extruder_id = ""
|
||||
if(!isNaN(extruder))
|
||||
{
|
||||
|
@ -171,7 +171,7 @@ UM.Dialog
|
|||
}
|
||||
else
|
||||
{
|
||||
extruder_id = modelData
|
||||
extruder_id = modelData.position
|
||||
}
|
||||
|
||||
return catalog.i18nc("@action:label", "Extruder %1").arg(extruder_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue