Don't break binding of is_favorite upon clicking star

We shouldn't override it here because doing that causes the binding to break. Just remove the favourite and let the model update itself, thus removing the star.

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

View file

@ -73,11 +73,9 @@ Rectangle
if (materialSlot.is_favorite)
{
base.materialManager.removeFavorite(material.root_material_id)
materialSlot.is_favorite = false
return
}
base.materialManager.addFavorite(material.root_material_id)
materialSlot.is_favorite = true
return
}
style: ButtonStyle