Merge pull request #381 from lbryio/no-progress-downloads

Display the download button for files that are not downloading and have 0 progress
This commit is contained in:
Jeremy Kauffman 2017-07-24 17:30:42 -04:00 committed by GitHub
commit 276aa5c27e
2 changed files with 5 additions and 1 deletions

View file

@ -31,6 +31,7 @@ Web UI version numbers should always match the corresponding version of LBRY App
* Fixed files on downloaded tab not showing download progress
* Fixed downloading files that are deleted not being removed from the downloading list
* Fixed download progress bar not being cleared when a downloading file is deleted
* Fixed app thinking downloads with 0 progress were downloaded after restart
### Deprecated
*

View file

@ -118,7 +118,10 @@ class FileActions extends React.PureComponent {
/>
</div>
);
} else if (fileInfo === null && !downloading) {
} else if (
(fileInfo === null || (fileInfo && fileInfo.written_bytes === 0)) &&
!downloading
) {
if (!costInfo) {
content = <BusyMessage message={__("Fetching cost info")} />;
} else {