Skip to content

Commit

Permalink
Merge pull request #1712 from cewert/fix-crashlog
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert authored Feb 14, 2024
2 parents fe49ea0 + 88e5399 commit 2410769
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/home/HomeItem.bs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ end sub


sub itemContentChanged()
m.unplayedCount.visible = false
if isValid(m.unplayedCount) then m.unplayedCount.visible = false
itemData = m.top.itemContent
if itemData = invalid then return

Expand All @@ -56,15 +56,14 @@ sub itemContentChanged()

if itemData.isWatched
m.playedIndicator.visible = true
m.unplayedCount.visible = false
else
m.playedIndicator.visible = false

if LCase(itemData.type) = "series"
if m.global.session.user.settings["ui.tvshows.disableUnwatchedEpisodeCount"] = false
if isValid(itemData.json.UserData) and isValid(itemData.json.UserData.UnplayedItemCount)
if itemData.json.UserData.UnplayedItemCount > 0
m.unplayedCount.visible = true
if isValid(m.unplayedCount) then m.unplayedCount.visible = true
m.unplayedEpisodeCount.text = itemData.json.UserData.UnplayedItemCount
end if
end if
Expand Down

0 comments on commit 2410769

Please sign in to comment.