mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Don't check on type equality to check if material
is set
As suggested by code review CURA-9044
This commit is contained in:
parent
1e15197d44
commit
5d3b22f45a
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ Rectangle
|
|||
|
||||
property var material: null
|
||||
property bool hovered: false
|
||||
property bool isActive: material !== null && Cura.MachineManager.currentRootMaterialId[Cura.ExtruderManager.activeExtruderIndex] == material.root_material_id
|
||||
property bool isActive: material != null && Cura.MachineManager.currentRootMaterialId[Cura.ExtruderManager.activeExtruderIndex] == material.root_material_id
|
||||
|
||||
height: UM.Theme.getSize("preferences_page_list_item").height
|
||||
width: parent.width
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue