Simplify is_favorite condition

No stupid ternary operators necessary.

Contributes to issue CURA-6032.
This commit is contained in:
Ghostkeeper 2018-12-20 14:24:00 +01:00
parent 9ffc039254
commit f3a0b44d5e
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -15,7 +15,7 @@ Rectangle
id: materialSlot
property var material: null
property var hovered: false
property var is_favorite: material != null ? material.is_favorite : false
property var is_favorite: material != null && material.is_favorite
height: UM.Theme.getSize("favorites_row").height
width: parent.width