Skip to content

Commit

Permalink
Merge branch '2.0.z' into fix-crashlog2
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert authored Feb 14, 2024
2 parents d2834c5 + 2410769 commit c9f8be1
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
localGlobal = m.global
Expand All @@ -57,7 +57,6 @@ sub itemContentChanged()

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

Expand All @@ -66,7 +65,7 @@ sub itemContentChanged()
if localGlobal.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 c9f8be1

Please sign in to comment.