mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-31 05:01:57 +08:00
Simplified QML expression
This commit is contained in:
parent
5f6b267c77
commit
d1a51b26f7
@ -41,15 +41,7 @@ Rectangle
|
|||||||
anchors.left: swatch.right
|
anchors.left: swatch.right
|
||||||
anchors.verticalCenter: materialSlot.verticalCenter
|
anchors.verticalCenter: materialSlot.verticalCenter
|
||||||
anchors.leftMargin: UM.Theme.getSize("narrow_margin").width
|
anchors.leftMargin: UM.Theme.getSize("narrow_margin").width
|
||||||
font.italic:
|
font.italic: Cura.MachineManager.currentRootMaterialId[Cura.ExtruderManager.activeExtruderIndex] == material.root_material_id
|
||||||
{
|
|
||||||
var selected_material = Cura.MachineManager.currentRootMaterialId[Cura.ExtruderManager.activeExtruderIndex]
|
|
||||||
if(selected_material == material.root_material_id)
|
|
||||||
{
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
MouseArea
|
MouseArea
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user