mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
HaikuDepot: Fix list packages view
Resolves #19201 Change-Id: Iaba3a84aeb2dfafc3512ffea21bb58c548aa3dee Reviewed-on: https://review.haiku-os.org/c/haiku/+/8504 Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org> Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
8ece85d220
commit
55a87be02d
@ -663,12 +663,15 @@ PackageRow::UpdateRating()
|
||||
|
||||
UserRatingInfoRef userRatingInfo = fPackage->UserRatingInfo();
|
||||
UserRatingSummaryRef userRatingSummary;
|
||||
float averageRating = RATING_MISSING;
|
||||
|
||||
if (userRatingInfo.IsSet())
|
||||
userRatingSummary = userRatingInfo->Summary();
|
||||
|
||||
if (userRatingSummary.IsSet())
|
||||
SetField(new RatingField(userRatingSummary->AverageRating()), kRatingColumn);
|
||||
averageRating = userRatingSummary->AverageRating();
|
||||
|
||||
SetField(new RatingField(averageRating), kRatingColumn);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user