mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-17 13:50:28 -04:00
handles canceled downloads properly (fixes #81)
This commit is contained in:
parent
8892126155
commit
f5ddd23b70
4 changed files with 25 additions and 8 deletions
|
@ -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'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue