mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Simplified QML expression
This commit is contained in:
parent
5f6b267c77
commit
d1a51b26f7
1 changed files with 1 additions and 9 deletions
|
@ -41,15 +41,7 @@ Rectangle
|
|||
anchors.left: swatch.right
|
||||
anchors.verticalCenter: materialSlot.verticalCenter
|
||||
anchors.leftMargin: UM.Theme.getSize("narrow_margin").width
|
||||
font.italic:
|
||||
{
|
||||
var selected_material = Cura.MachineManager.currentRootMaterialId[Cura.ExtruderManager.activeExtruderIndex]
|
||||
if(selected_material == material.root_material_id)
|
||||
{
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
font.italic: Cura.MachineManager.currentRootMaterialId[Cura.ExtruderManager.activeExtruderIndex] == material.root_material_id
|
||||
}
|
||||
MouseArea
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue