Merge pull request #1597 from 1hitsong/fixOKOnEpisodeList

Fix selecting episode using OK button on episode list view
This commit is contained in:
1hitsong 2023-12-29 09:09:12 -05:00 committed by GitHub
commit b9e55e0848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -93,6 +93,8 @@ function onKeyEvent(key as string, press as boolean) as boolean
focusedItem = getFocusedItem() focusedItem = getFocusedItem()
if isValid(focusedItem) if isValid(focusedItem)
m.top.selectedItem = focusedItem m.top.selectedItem = focusedItem
'Prevent the selected item event from double firing
m.top.selectedItem = invalid
end if end if
return true return true
end if end if

View File

@ -811,7 +811,7 @@ function CreateSeasonDetailsGroupByID(seriesID as string, seasonID as string) as
group.objects = TVEpisodes(seriesID, seasonID) group.objects = TVEpisodes(seriesID, seasonID)
group.episodeObjects = group.objects group.episodeObjects = group.objects
' watch for button presses ' watch for button presses
group.observeField("episodeSelected", m.port) group.observeField("selectedItem", m.port)
group.observeField("quickPlayNode", m.port) group.observeField("quickPlayNode", m.port)
' don't wait for the extras button ' don't wait for the extras button
stopLoadingSpinner() stopLoadingSpinner()