Set selections by default
In case the user tries to change a file selection state before enabling the torrent.
This commit is contained in:
@@ -145,7 +145,8 @@ function setupSavedState (cb) {
|
|||||||
posterFileName: parsedTorrent.infoHash + path.extname(t.posterFileName),
|
posterFileName: parsedTorrent.infoHash + path.extname(t.posterFileName),
|
||||||
torrentFileName: parsedTorrent.infoHash + '.torrent',
|
torrentFileName: parsedTorrent.infoHash + '.torrent',
|
||||||
magnetURI: parseTorrent.toMagnetURI(parsedTorrent),
|
magnetURI: parseTorrent.toMagnetURI(parsedTorrent),
|
||||||
files: parsedTorrent.files
|
files: parsedTorrent.files,
|
||||||
|
selections: parsedTorrent.files.map((x) => true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user