Merge pull request #1232 from 1hitsong/fixScreensaver
This commit is contained in:
commit
4a5ad689c6
|
@ -1,6 +1,5 @@
|
|||
sub init()
|
||||
m.playReported = false
|
||||
m.top.disableScreenSaver = true
|
||||
m.top.observeField("state", "audioStateChanged")
|
||||
end sub
|
||||
|
||||
|
@ -10,6 +9,8 @@ sub audioStateChanged()
|
|||
|
||||
reportedPlaybackState = "update"
|
||||
|
||||
m.top.disableScreenSaver = (currentState = "playing")
|
||||
|
||||
if currentState = "playing" and not m.playReported
|
||||
reportedPlaybackState = "start"
|
||||
m.playReported = true
|
||||
|
|
Loading…
Reference in New Issue
Block a user