mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-23 14:19:37 +08:00
Simplified QML expression
This commit is contained in:
parent
5f6b267c77
commit
d1a51b26f7
@ -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…
x
Reference in New Issue
Block a user