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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user