mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 20:14:13 +00:00
add get_torrent_name
This commit is contained in:
parent
d9d8762c8e
commit
3da5cd9816
@ -258,6 +258,12 @@ class AllTorrents(BaseMode):
|
|||||||
if refresh:
|
if refresh:
|
||||||
self.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):
|
def _scroll_up(self, by):
|
||||||
prevoff = self.curoff
|
prevoff = self.curoff
|
||||||
self.cursel = max(self.cursel - by,1)
|
self.cursel = max(self.cursel - by,1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user