onionshare/onionshare_gui
Garrett Robinson ea47e80f14 Add estimated time remaining to progress indicator
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.
2015-12-23 01:05:30 -05:00
..
__init__.py Updated copyright year to 2015 2015-09-07 21:48:49 -07:00
common.py Merge branch 'master' into ephemeral 2015-11-15 15:35:59 -08:00
downloads.py Add estimated time remaining to progress indicator 2015-12-23 01:05:30 -05:00
file_selection.py Add docstrings to all classes and methods (fix #198) 2015-11-15 19:01:20 -08:00
onionshare_gui.py Add estimated time remaining to progress indicator 2015-12-23 01:05:30 -05:00
options.py "Stop sharing automatically" checkbox respected in GUI when toggled before the server is started (fixes #223) 2015-11-20 13:43:19 -08:00
server_status.py Add docstrings to all classes and methods (fix #198) 2015-11-15 19:01:20 -08:00