Set selections by default

In case the user tries to change a file selection state before enabling
the torrent.
This commit is contained in:
Feross Aboukhadijeh
2016-06-02 19:52:35 -07:00
parent e86bd26800
commit d9aa3822ee

View File

@@ -145,7 +145,8 @@ function setupSavedState (cb) {
posterFileName: parsedTorrent.infoHash + path.extname(t.posterFileName),
torrentFileName: parsedTorrent.infoHash + '.torrent',
magnetURI: parseTorrent.toMagnetURI(parsedTorrent),
files: parsedTorrent.files
files: parsedTorrent.files,
selections: parsedTorrent.files.map((x) => true)
}
}
}