Skip to content

Commit

Permalink
Fix library bug where items can show played when they aren't
Browse files Browse the repository at this point in the history
  • Loading branch information
1hitsong committed Sep 24, 2024
1 parent d3fe2b4 commit f23bc8b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions components/ItemGrid/GridItemSmall.bs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "pkg:/source/utils/misc.bs"
import "pkg:/source/utils/config.bs"
import "pkg:/source/utils/misc.bs"

sub init()
m.itemPoster = m.top.findNode("itemPoster")
Expand Down Expand Up @@ -38,8 +38,10 @@ sub itemContentChanged()

if not isValid(itemData) then return

if isValid(itemData.json) and isValid(itemData.json.UserData) and isValid(itemData.json.UserData.Played) and itemData.json.UserData.Played
if isChainValid(itemData, "json.UserData.Played") and itemData.json.UserData.Played
m.playedIndicator.visible = true
else
m.playedIndicator.visible = false
end if

m.itemPoster.uri = itemData.PosterUrl
Expand Down
6 changes: 5 additions & 1 deletion source/static/whatsNew/1.0.6.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"author": "1hitsong"
},
{
"description": "Hide public users from user select screen",
"description": "Let users hide public accounts from user select screen",
"author": "1hitsong"
},
{
Expand All @@ -26,5 +26,9 @@
{
"description": "Fix item showing title under next row",
"author": "1hitsong"
},
{
"description": "Fix library bug where items can show played when they aren't",
"author": "1hitsong"
}
]

0 comments on commit f23bc8b

Please sign in to comment.