[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
@ -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…
x
Reference in New Issue
Block a user