mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 09:58:39 +00:00
[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
1 changed files with 2 additions and 3 deletions
|
@ -663,9 +663,8 @@ class TorrentView(ListView, component.Component):
|
||||||
self.save_state()
|
self.save_state()
|
||||||
|
|
||||||
def on_torrentadded_event(self, torrent_id, from_state):
|
def on_torrentadded_event(self, torrent_id, from_state):
|
||||||
if not from_state:
|
self.add_rows([torrent_id])
|
||||||
self.add_rows([torrent_id])
|
self.update()
|
||||||
self.update()
|
|
||||||
|
|
||||||
def on_torrentremoved_event(self, torrent_id):
|
def on_torrentremoved_event(self, torrent_id):
|
||||||
self.remove_row(torrent_id)
|
self.remove_row(torrent_id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue