From 4745088eff715fc949c23bdce996a590e76cad12 Mon Sep 17 00:00:00 2001 From: 6ea86b96 <6ea86b96@gmail.com> Date: Tue, 25 Jul 2017 00:31:15 +0700 Subject: [PATCH] Display the download button for files that are not downloading and have 0 progress --- CHANGELOG.md | 1 + ui/js/component/fileActions/view.jsx | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a37a87df..eb7cc2f37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 * diff --git a/ui/js/component/fileActions/view.jsx b/ui/js/component/fileActions/view.jsx index 64fb859db..ef72463c5 100644 --- a/ui/js/component/fileActions/view.jsx +++ b/ui/js/component/fileActions/view.jsx @@ -118,7 +118,10 @@ class FileActions extends React.PureComponent { /> ); - } else if (fileInfo === null && !downloading) { + } else if ( + (fileInfo === null || (fileInfo && fileInfo.written_bytes === 0)) && + !downloading + ) { if (!costInfo) { content = ; } else {