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:
Miguel Jacq 2018-09-25 14:40:10 +10:00
parent 2c307ea582
commit b465d9db85
2 changed files with 9 additions and 9 deletions

View file

@ -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