handles canceled downloads properly (fixes #81)

This commit is contained in:
Micah Lee 2014-09-22 20:22:30 +00:00
parent 8892126155
commit f5ddd23b70
4 changed files with 25 additions and 8 deletions

View file

@ -66,3 +66,6 @@ class Downloads(QtGui.QVBoxLayout):
else:
pb.setFormat("{0}, %p%".format(helpers.human_readable_filesize(downloaded_bytes)))
def cancel_download(self, download_id):
pb = self.progress_bars[download_id]
pb.setFormat(strings._('gui_canceled'))