mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 14:04:03 -06:00
Simplify is_favorite condition
No stupid ternary operators necessary. Contributes to issue CURA-6032.
This commit is contained in:
parent
9ffc039254
commit
f3a0b44d5e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue