mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 04:24:27 +00:00
Fix not showing new torrents if you don't use the All label first
This commit is contained in:
parent
b1947d508d
commit
477d5c0def
@ -98,6 +98,7 @@ class Signals(component.Component):
|
|||||||
log.debug("torrent id: %s", torrent_id)
|
log.debug("torrent id: %s", torrent_id)
|
||||||
# Add the torrent to the treeview
|
# Add the torrent to the treeview
|
||||||
component.get("TorrentView").add_row(torrent_id)
|
component.get("TorrentView").add_row(torrent_id)
|
||||||
|
component.get("TorrentView").mark_dirty(torrent_id)
|
||||||
|
|
||||||
def torrent_removed_signal(self, torrent_id):
|
def torrent_removed_signal(self, torrent_id):
|
||||||
log.debug("torrent_remove signal received..")
|
log.debug("torrent_remove signal received..")
|
||||||
|
@ -189,6 +189,7 @@ class TorrentView(listview.ListView, component.Component):
|
|||||||
def _on_session_state(self, state):
|
def _on_session_state(self, state):
|
||||||
for torrent_id in state:
|
for torrent_id in state:
|
||||||
self.add_row(torrent_id, update=False)
|
self.add_row(torrent_id, update=False)
|
||||||
|
self.mark_dirty(torrent_id)
|
||||||
self.update()
|
self.update()
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user