@@ -276,6 +276,9 @@ function dispatch (action, ...args) {
|
|||||||
ipcRenderer.send('blockPowerSave')
|
ipcRenderer.send('blockPowerSave')
|
||||||
}
|
}
|
||||||
if (action === 'mediaPaused') {
|
if (action === 'mediaPaused') {
|
||||||
|
// When removing the <video>/<audio> tag to switch to Chromecast, it sends
|
||||||
|
// a false 'paused' event. Ignore that:
|
||||||
|
if (state.playing.location !== 'local') return
|
||||||
state.playing.isPaused = true
|
state.playing.isPaused = true
|
||||||
ipcRenderer.send('unblockPowerSave')
|
ipcRenderer.send('unblockPowerSave')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user