mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-05 07:55:23 -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
|
@ -194,6 +194,9 @@ class OnionShareGui(QtGui.QWidget):
|
|||
if not web.get_stay_open():
|
||||
self.server_status.stop_server()
|
||||
|
||||
elif event["type"] == web.REQUEST_CANCELED:
|
||||
self.downloads.cancel_download(event["data"]["id"])
|
||||
|
||||
elif event["path"] != '/favicon.ico':
|
||||
self.status_bar.showMessage('{0}: {1}'.format(strings._('other_page_loaded', True), event["path"]))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue