mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 14:36:00 +08:00
Simplify is_favorite condition
No stupid ternary operators necessary. Contributes to issue CURA-6032.
This commit is contained in:
parent
9ffc039254
commit
f3a0b44d5e
@ -15,7 +15,7 @@ Rectangle
|
|||||||
id: materialSlot
|
id: materialSlot
|
||||||
property var material: null
|
property var material: null
|
||||||
property var hovered: false
|
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
|
height: UM.Theme.getSize("favorites_row").height
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
Loading…
x
Reference in New Issue
Block a user