mirror of
https://github.com/onionshare/onionshare.git
synced 2025-09-20 04:24:37 -04:00
Analyse the right file size to determine if the download has finished in the UI (in order to decide whether to stop server yet)
This commit is contained in:
parent
2c307ea582
commit
b465d9db85
2 changed files with 9 additions and 9 deletions
|
@ -246,7 +246,7 @@ class ShareMode(Mode):
|
|||
self.downloads.update(event["data"]["id"], event["data"]["bytes"])
|
||||
|
||||
# Is the download complete?
|
||||
if event["data"]["bytes"] == self.web.share_mode.download_filesize:
|
||||
if event["data"]["bytes"] == self.web.share_mode.filesize:
|
||||
self.system_tray.showMessage(strings._('systray_download_completed_title', True), strings._('systray_download_completed_message', True))
|
||||
|
||||
# Update the total 'completed downloads' info
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue