Only add watched option to home screen.

Delete unused function from MovieDetails
This commit is contained in:
Jack 2021-01-05 20:40:11 -05:00
parent 055abb30ac
commit f43f43c43e
3 changed files with 5 additions and 6 deletions

View File

@ -11,10 +11,6 @@ sub init()
m.top.findNode("buttons").setFocus(true)
end sub
function refresh()
itemContentChanged()
end function
sub itemContentChanged()
' Updates video metadata
item = m.top.itemContent

View File

@ -40,7 +40,6 @@
<interface>
<field id="itemContent" type="node" onChange="itemContentChanged" />
<field id="selectedAudioStreamIndex" type="integer" />
<function name="refresh" />
</interface>
<script type="text/brightscript" uri="pkg:/source/utils/misc.brs" />
<script type="text/brightscript" uri="MovieDetails.brs" />

View File

@ -231,7 +231,11 @@ end function
'Opens dialog asking user if they want to resume video or start playback over
function startPlayBackOver(time as LongInteger) as integer
return option_dialog([ "Resume playing at " + ticksToHuman(time) + ".", "Start over from the beginning.", "Watched"])
if m.scene.focusedChild.overhangTitle = "Home" then
return option_dialog([ "Resume playing at " + ticksToHuman(time) + ".", "Start over from the beginning.", "Watched"])
else
return option_dialog([ "Resume playing at " + ticksToHuman(time) + ".", "Start over from the beginning."])
endif
end function
function directPlaySupported(meta as object) as boolean