[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:
bendikro 2016-04-14 19:24:36 +02:00 committed by Calum Lind
parent 6287a782a1
commit 3b84eb635c

View file

@ -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)