mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:36:01 +08:00
Always show average rating
CURA-6013
This commit is contained in:
parent
9d1701aacb
commit
4baf0d1bdb
@ -143,9 +143,7 @@ Item
|
|||||||
|
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
// If the user voted, show that value. Otherwsie show the average rating.
|
text: model.average_rating.toFixed(1) + " (" + model.num_ratings + " " + catalog.i18nc("@label", "ratings") + ")"
|
||||||
property real ratingtoUse: model.user_rating == 0 ? model.average_rating: model.user_rating
|
|
||||||
text: ratingtoUse.toFixed(1) + " (" + model.num_ratings + " " + catalog.i18nc("@label", "ratings") + ")"
|
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
height: starIcon.height
|
height: starIcon.height
|
||||||
anchors.verticalCenter: starIcon.verticalCenter
|
anchors.verticalCenter: starIcon.verticalCenter
|
||||||
|
Loading…
x
Reference in New Issue
Block a user