Skip to content

Commit

Permalink
Merge pull request #1954 from cewert/fix-series-shuffle-crash
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert authored Oct 2, 2024
2 parents ef2627d + 4328318 commit 5e98ce2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/tvshows/TVShowDetails.bs
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,10 @@ end function

sub onShuffleEpisodeDataLoaded()
m.getShuffleEpisodesTask.unobserveField("data")
m.global.queueManager.callFunc("set", m.getShuffleEpisodesTask.data.items)
m.global.queueManager.callFunc("playQueue")
if isValid(m.getShuffleEpisodesTask.data)
m.global.queueManager.callFunc("set", m.getShuffleEpisodesTask.data.items)
m.global.queueManager.callFunc("playQueue")
end if
end sub

function onKeyEvent(key as string, press as boolean) as boolean
Expand Down

0 comments on commit 5e98ce2

Please sign in to comment.