Pause All will now pause seeding torrents too
This commit is contained in:
committed by
Dan Flettre
parent
0c44e10ca7
commit
ed0f05abc4
@@ -130,7 +130,8 @@ module.exports = class TorrentListController {
|
|||||||
|
|
||||||
pauseAllTorrents () {
|
pauseAllTorrents () {
|
||||||
this.state.saved.torrents.forEach((torrentSummary) => {
|
this.state.saved.torrents.forEach((torrentSummary) => {
|
||||||
if (torrentSummary.status === 'downloading') {
|
if (torrentSummary.status === 'downloading' ||
|
||||||
|
torrentSummary.status === 'seeding') {
|
||||||
torrentSummary.status = 'paused'
|
torrentSummary.status = 'paused'
|
||||||
ipcRenderer.send('wt-stop-torrenting', torrentSummary.infoHash)
|
ipcRenderer.send('wt-stop-torrenting', torrentSummary.infoHash)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user