diff options
author | casper <c.lamboo@ultimaker.com> | 2022-03-22 15:46:31 +0300 |
---|---|---|
committer | casper <c.lamboo@ultimaker.com> | 2022-03-22 15:46:31 +0300 |
commit | 5d3b22f45ade562706da2c06adf2bbbd054614db (patch) | |
tree | cfd2dd63e33276c02c2f532f6b98ab33f0c61124 | |
parent | 1e15197d44ef71d8a23a26ee6c6922e5f9a8f089 (diff) |
Don't check on type equality to check if `material` is set
As suggested by code review
CURA-9044
-rw-r--r-- | resources/qml/Preferences/Materials/MaterialsSlot.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/qml/Preferences/Materials/MaterialsSlot.qml b/resources/qml/Preferences/Materials/MaterialsSlot.qml index c0f796a265..f124736fd0 100644 --- a/resources/qml/Preferences/Materials/MaterialsSlot.qml +++ b/resources/qml/Preferences/Materials/MaterialsSlot.qml @@ -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 |