From 9c8eabb46c3e9bc11837d193e9ce8738eddda0ba Mon Sep 17 00:00:00 2001 From: Mathias Rasmussen Date: Tue, 23 Aug 2016 20:43:47 +0200 Subject: [PATCH] Prevent notification sound during playback --- src/renderer/controllers/torrent-controller.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/controllers/torrent-controller.js b/src/renderer/controllers/torrent-controller.js index 2cfd56e5..4d71f05b 100644 --- a/src/renderer/controllers/torrent-controller.js +++ b/src/renderer/controllers/torrent-controller.js @@ -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') }