Resuming paused torrents when streaming torrent finishes downloading (wt-done).

This commit is contained in:
Alberto Miranda
2016-08-30 12:09:23 -03:00
parent 1e5ac1df9c
commit 44a0f760de

View File

@@ -281,6 +281,7 @@ function setupIpc () {
ipcRenderer.on('wt-infohash', (e, ...args) => tc.torrentInfoHash(...args))
ipcRenderer.on('wt-metadata', (e, ...args) => tc.torrentMetadata(...args))
ipcRenderer.on('wt-done', (e, ...args) => tc.torrentDone(...args))
ipcRenderer.on('wt-done', () => controllers.torrentList.resumePausedTorrents())
ipcRenderer.on('wt-warning', (e, ...args) => tc.torrentWarning(...args))
ipcRenderer.on('wt-error', (e, ...args) => tc.torrentError(...args))