mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 22:06:27 +00:00
dont update pieces tab with multiple or none torrents selected - micah
This commit is contained in:
parent
8cc8ffe4a4
commit
8c9b1de33b
@ -83,6 +83,7 @@ class TorrentPieces:
|
||||
unique_id = self.parent.get_selected_torrent()
|
||||
# If no torrents added or more than one torrent selected
|
||||
if unique_id is None:
|
||||
self.tab_pieces.clear_pieces_store()
|
||||
return
|
||||
if unique_id != self.tab_pieces.unique_id:
|
||||
self.manager.disconnect_event(self.manager.constants['EVENT_PIECE_FINISHED'], self.tab_pieces.handle_event)
|
||||
|
Loading…
x
Reference in New Issue
Block a user