mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 00:45:56 +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
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user