mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-19 22:58:30 +00:00
remove torrents that are no longer in the update from the grid
This commit is contained in:
parent
78b5c06776
commit
d4d7f054f3
@ -268,6 +268,14 @@ Copyright:
|
|||||||
record.set('tracker', torrent.tracker_host);
|
record.set('tracker', torrent.tracker_host);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var torrentIds = Ext.keys(torrents);
|
||||||
|
store.each(function(record) {
|
||||||
|
if (torrentIds.indexOf(record.id) == -1) {
|
||||||
|
// Torrent is no longer in the grid so we must remove it.
|
||||||
|
store.remove(record);
|
||||||
|
}
|
||||||
|
}, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
// private
|
// private
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user