Don't show padding files
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user