mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 13:56:47 +00:00
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,6 +738,7 @@ class TorrentView(listview.ListView, component.Component):
|
||||
self.save_state()
|
||||
|
||||
def on_torrentadded_event(self, torrent_id, from_state):
|
||||
if not from_state:
|
||||
self.add_row(torrent_id)
|
||||
self.mark_dirty(torrent_id)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user