Prevent notification sound during playback

This commit is contained in:
Mathias Rasmussen
2016-08-23 20:43:47 +02:00
parent 82853aa017
commit 9c8eabb46c

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')
}