mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-29 01:06:16 -05:00
ea47e80f14
Estimates the time remaining for each download and displays it in the progress bar. Waits for 10 seconds before showing the progress bar to allow the download rate to stabilize, which prevents the estimated time remaining from jumping all over the place at the start of the download (a.k.a the "Windows copy dialog experience"). If your download takes less than 10 seconds, you don't really need to see an ETA anyway. This commit also refactors the Downloads class, splitting out the download-specific functionality into a new Download class, providing better encapsulation. As a result, I was able to simplify the call to `update_download` because it was no longer necessary to pass the `total_bytes` (which don't change after the download has begun). Tested on Mac OS 10.9. |
||
---|---|---|
.. | ||
__init__.py | ||
common.py | ||
downloads.py | ||
file_selection.py | ||
onionshare_gui.py | ||
options.py | ||
server_status.py |