Skip to content

Commit

Permalink
fix sloppy work
Browse files Browse the repository at this point in the history
  • Loading branch information
photonconvergence committed Apr 27, 2024
1 parent cfa4866 commit fa057d1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 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 m.global.session.user.settings["ui.movies.showRatings"] = true
if m.global.session.user.settings["ui.movies.showRatings"]
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 m.global.session.user.settings["ui.movies.showRatings"] = true
if m.global.session.user.settings["ui.movies.showRatings"]
if isValid(itemData.communityRating)
setFieldText("communityRating", int(itemData.communityRating * 10) / 10)
else
Expand Down
8 changes: 4 additions & 4 deletions locale/en_US/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1257,13 +1257,13 @@
<extracomment>Ellipsis Text for when text overflows its container</extracomment>
</message>
<message>
<source>Disable Community and Critical Ratings</source>
<translation>Disable Community and Critical Ratings</translation>
<source>Community and Critical Ratings</source>
<translation>Community and Critical Ratings</translation>
<extracomment>User Setting - Setting title</extracomment>
</message>
<message>
<source>Hide the star, community rating, tomato, and critical rating for Movies.</source>
<translation>Hide the star, community rating, tomato, and critical rating for Movies.</translation>
<source>Ratings for how good a movie is</source>
<translation>Ratings for how good a movie is</translation>
<extracomment>User Setting - Setting description</extracomment>
</message>
</context>
Expand Down
2 changes: 1 addition & 1 deletion settings/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@
},
{
"title": "Community and Critical Ratings",
"description": "Show ratings for how good a movie is.",
"description": "Ratings for how good a movie is.",
"settingName": "ui.movies.showRatings",
"type": "bool",
"default": "true"
Expand Down

0 comments on commit fa057d1

Please sign in to comment.