From 1c553788441c1f81a57a7bad9c5a6eddc246b411 Mon Sep 17 00:00:00 2001 From: 1hitsong <3330318+1hitsong@users.noreply.github.com> Date: Fri, 3 Jun 2022 13:49:44 -0400 Subject: [PATCH] Allow screensaver from paused NowPlaying --- components/music/NowPlaying.brs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/music/NowPlaying.brs b/components/music/NowPlaying.brs index 6efff98d..aeaf7778 100644 --- a/components/music/NowPlaying.brs +++ b/components/music/NowPlaying.brs @@ -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