Merge pull request #588 from rtsonneveld/master

Adjusted uploading progress bar so it doesn't jump back
This commit is contained in:
Garry Newman 2021-09-24 13:53:31 +01:00 committed by GitHub
commit 959249d04a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -246,7 +246,7 @@ public async Task<PublishResult> SubmitAsync( IProgress<float> progress = null,
case ItemUpdateStatus.UploadingContent:
{
var uploaded = total > 0 ? ((float)processed / (float)total) : 0.0f;
progress?.Report( 0.2f + uploaded * 0.7f );
progress?.Report( 0.2f + uploaded * 0.6f );
break;
}
case ItemUpdateStatus.UploadingPreviewFile: