feat(downloading): choose dir on new download

This commit is contained in:
Alexey Kasyanchuk
2018-08-28 19:47:55 +03:00
parent 5f874883a1
commit 4c2ff465f2
10 changed files with 217 additions and 86 deletions

View File

@ -800,10 +800,10 @@ module.exports = async ({
}
torrent.updateFilesSelection()
}
torrent.updateFilesSelection = () => {
torrent.deselect(0, torrent.pieces.length - 1, false)
for(const file of torrent.files)
{
const {selected} = file