Moves the UI update code into downloadFile(), after the check to see if the file is already cached, to avoid reporting that the client is downloading files when it isn't.
Moves the UI update code into downloadFile(), after the check to see if the file is already cached, to avoid reporting that the client is downloading files when it isn't.