Fix seeing double torrents in classic mode
Need to ignore torrent added events from state as they are already loaded by _on_session_state
This commit is contained in:
parent
235b7348ae
commit
77bdcfa7a4
|
@ -738,8 +738,9 @@ class TorrentView(listview.ListView, component.Component):
|
|||
self.save_state()
|
||||
|
||||
def on_torrentadded_event(self, torrent_id, from_state):
|
||||
self.add_row(torrent_id)
|
||||
self.mark_dirty(torrent_id)
|
||||
if not from_state:
|
||||
self.add_row(torrent_id)
|
||||
self.mark_dirty(torrent_id)
|
||||
|
||||
def on_torrentremoved_event(self, torrent_id):
|
||||
self.remove_row(torrent_id)
|
||||
|
|
Loading…
Reference in New Issue