feat: add preference to customize global trackers (#1836)

* Add preference to customize global trackers. Requires restart to apply

* Use IPC to pass global trackers list, torrent pause and resume will now update trackers

* Make the default tracker list an array from array of arrays

* Use globalThis instead of just global

Co-authored-by: Diego Rodríguez Baquero <github@diegorbaquero.com>
This commit is contained in:
Subin Siby
2022-05-12 05:13:54 +05:30
committed by GitHub
parent 401698e616
commit c943f39f6b
5 changed files with 77 additions and 7 deletions

View File

@@ -113,6 +113,10 @@ module.exports = class TorrentListController {
}
}
setGlobalTrackers (globalTrackers) {
ipcRenderer.send('wt-set-global-trackers', globalTrackers)
}
// TODO: use torrentKey, not infoHash
toggleTorrent (infoHash) {
const torrentSummary = TorrentSummary.getByKey(this.state, infoHash)