Allow screensaver from paused NowPlaying

This commit is contained in:
1hitsong 2022-06-03 13:49:44 -04:00
parent 6ba1fe3c8b
commit 1c55378844

View File

@ -205,8 +205,14 @@ end sub
function playAction() as boolean
if m.top.audio.state = "playing"
m.top.audio.control = "pause"
' Allow screen to go to real screensaver
WriteAsciiFile("tmp:/scene.temp", "nowplaying-paused")
MoveFile("tmp:/scene.temp", "tmp:/scene")
else if m.top.audio.state = "paused"
m.top.audio.control = "resume"
' Write screen tracker for screensaver
WriteAsciiFile("tmp:/scene.temp", "nowplaying")
MoveFile("tmp:/scene.temp", "tmp:/scene")
end if
return true