Move sound.play outisde the for loop
This commit is contained in:
committed by
Dan Flettre
parent
d8c9014471
commit
0c44e10ca7
@@ -133,9 +133,9 @@ module.exports = class TorrentListController {
|
||||
if (torrentSummary.status === 'downloading') {
|
||||
torrentSummary.status = 'paused'
|
||||
ipcRenderer.send('wt-stop-torrenting', torrentSummary.infoHash)
|
||||
sound.play('DISABLE')
|
||||
}
|
||||
})
|
||||
sound.play('DISABLE')
|
||||
}
|
||||
|
||||
resumeAllTorrents () {
|
||||
@@ -143,9 +143,9 @@ module.exports = class TorrentListController {
|
||||
if (torrentSummary.status === 'paused') {
|
||||
torrentSummary.status = 'downloading'
|
||||
this.startTorrentingSummary(torrentSummary.torrentKey)
|
||||
sound.play('ENABLE')
|
||||
}
|
||||
})
|
||||
sound.play('ENABLE')
|
||||
}
|
||||
|
||||
toggleTorrentFile (infoHash, index) {
|
||||
|
||||
Reference in New Issue
Block a user