Skip to content

Commit

Permalink
apply review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
photonconvergence committed Apr 9, 2024
1 parent d519533 commit 96b00c7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/ItemGrid/MovieLibraryView.bs
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ sub onItemFocused()

m.star.uri = "pkg:/images/sharp_star_white_18dp.png"

if get_user_setting("ui.movies.disableRatings") = "false"
if m.global.session.user.settings["ui.movies.disableRatings"] = false
if isValid(itemData.communityRating)
setFieldText("communityRating", int(itemData.communityRating * 10) / 10)
m.communityRatingGroup.visible = true
Expand Down
2 changes: 1 addition & 1 deletion components/movies/MovieDetails.bs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ sub itemContentChanged()
m.infoGroup.removeChild(m.top.findNode("officialRating"))
end if

if get_user_setting("ui.movies.disableRatings") = "false"
if m.global.session.user.settings["ui.movies.disableRatings"] = false
if isValid(itemData.communityRating)
setFieldText("communityRating", int(itemData.communityRating * 10) / 10)
else
Expand Down
4 changes: 2 additions & 2 deletions components/movies/MovieDetails.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
<Label id="releaseYear" />
<Label id="runtime" />
<Label id="officialRating" />
<LayoutGroup id="communityRatingGroup" layoutDirection="horiz" itemSpacings="[-5]" visible="true">
<LayoutGroup id="communityRatingGroup" layoutDirection="horiz" itemSpacings="[-5]">
<Poster id="star" uri="pkg:/images/sharp_star_white_18dp.png" height="32" width="32" blendColor="#cb272a" />
<Label id="communityRating" />
</LayoutGroup>
<LayoutGroup id="criticRatingGroup" layoutDirection="horiz" itemSpacings="[-5]" visible="true">
<LayoutGroup id="criticRatingGroup" layoutDirection="horiz" itemSpacings="[-5]">
<Poster id="criticRatingIcon" height="32" width="32" />
<Label id="criticRatingLabel" />
</LayoutGroup>
Expand Down

0 comments on commit 96b00c7

Please sign in to comment.