mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
[GTKUI] Fix torrents not showing in classic mode
Commit 5d1aff157e
implementing async_add_torrent cause torrents
not to show in classic mode.
This commit is contained in:
parent
6287a782a1
commit
3b84eb635c
1 changed files with 2 additions and 3 deletions
|
@ -663,9 +663,8 @@ class TorrentView(ListView, component.Component):
|
|||
self.save_state()
|
||||
|
||||
def on_torrentadded_event(self, torrent_id, from_state):
|
||||
if not from_state:
|
||||
self.add_rows([torrent_id])
|
||||
self.update()
|
||||
self.add_rows([torrent_id])
|
||||
self.update()
|
||||
|
||||
def on_torrentremoved_event(self, torrent_id):
|
||||
self.remove_row(torrent_id)
|
||||
|
|
Loading…
Add table
Reference in a new issue