fix: incorrect download progress reporting

This commit is contained in:
Mykyta Myronenko
2024-08-10 19:29:54 +03:00
committed by GitHub
parent f057abff0f
commit a2f6f84bde

View File

@@ -243,7 +243,7 @@ namespace Cysharp.Threading.Tasks
if (progress != null && handle.IsValid())
{
progress.Report(handle.PercentComplete);
progress.Report(handle.GetDownloadStatus().Percent);
}
return true;
@@ -448,7 +448,7 @@ namespace Cysharp.Threading.Tasks
if (progress != null && handle.IsValid())
{
progress.Report(handle.PercentComplete);
progress.Report(handle.GetDownloadStatus().Percent);
}
return true;