Don't show padding files

This commit is contained in:
DC
2016-07-20 22:40:18 -07:00
parent a4a31d0860
commit 0d3c18d3bc
3 changed files with 3 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ State.load(onState)
// the dock icon and drag+drop. // the dock icon and drag+drop.
function onState (err, _state) { function onState (err, _state) {
if (err) return onError(err) if (err) return onError(err)
state = _state state = window.state = _state // Make available for easier debugging
// Create controllers // Create controllers
controllers = { controllers = {

View File

@@ -221,6 +221,7 @@ module.exports = class TorrentList extends React.Component {
} else { } else {
// We do know the files. List them and show download stats for each one // We do know the files. List them and show download stats for each one
var fileRows = torrentSummary.files var fileRows = torrentSummary.files
.filter((file) => !file.path.includes('/.____padding_file/'))
.map((file, index) => ({ file, index })) .map((file, index) => ({ file, index }))
.sort(function (a, b) { .sort(function (a, b) {
if (a.file.name < b.file.name) return -1 if (a.file.name < b.file.name) return -1