Merge pull request #1954 from cewert/fix-series-shuffle-crash

This commit is contained in:
Charles Ewert 2024-10-02 05:42:37 -07:00 committed by GitHub
commit 5e98ce202a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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