Merge pull request #822 from feross/m/playback-sound

Prevent notification sound during playback
This commit is contained in:
Feross Aboukhadijeh
2016-08-24 02:05:06 +02:00
committed by GitHub

View File

@@ -186,5 +186,6 @@ function showDoneNotification (torrent) {
ipcRenderer.send('show')
}
sound.play('DONE')
// Only play notification sound if player is inactive
if (this.state.playing.isPaused) sound.play('DONE')
}