#378: Advanced (pieces) progress bar
-----------------------------+----------------------------------------------
Reporter: andar | Owner: andar
Type: feature-request | Status: new
Priority: major | Milestone: Future
Component: gtkui | Version:
Keywords: |
-----------------------------+----------------------------------------------
Comment(by damoxc):
Looks good, although I would change it to return None rather than an empty
list, and merge line 486 and 487 so you end up with:
{{{
#!python
def get_pieces_status(self):
if not self.handle.has_metadata():
return None
return self.handle.status().pieces
}}}
Returning None rather than an empty list is less expensive.
andar do you have any thoughts?
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/378#comment:8>
Deluge <http://deluge-torrent.org/>
Deluge project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/deluge-dev?hl=en.