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