mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
add get_torrent_name
This commit is contained in:
parent
d9d8762c8e
commit
3da5cd9816
1 changed files with 6 additions and 0 deletions
|
@ -258,6 +258,12 @@ class AllTorrents(BaseMode):
|
|||
if refresh:
|
||||
self.refresh()
|
||||
|
||||
def get_torrent_name(self, torrent_id):
|
||||
for p,i in enumerate(self._sorted_ids):
|
||||
if torrent_id == i:
|
||||
return self.torrent_names[p]
|
||||
return None
|
||||
|
||||
def _scroll_up(self, by):
|
||||
prevoff = self.curoff
|
||||
self.cursel = max(self.cursel - by,1)
|
||||
|
|
Loading…
Add table
Reference in a new issue