Block "Power Saver" mode while video is playing

fix #106
This commit is contained in:
Nate Goldman
2016-03-11 16:43:34 -08:00
parent ca2236da84
commit 52fc2d88c9
3 changed files with 18 additions and 0 deletions

View File

@@ -206,6 +206,9 @@ function dispatch (action, ...args) {
state.video.isPaused = true
update()
}
if (action === 'videoPlaying') {
ipcRenderer.send('playing-video')
}
if (action === 'videoPaused') {
ipcRenderer.send('paused-video')
}