mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-26 06:35:49 +03:00
Merge pull request #588 from rtsonneveld/master
Adjusted uploading progress bar so it doesn't jump back
This commit is contained in:
commit
959249d04a
@ -246,7 +246,7 @@ public async Task<PublishResult> SubmitAsync( IProgress<float> progress = null,
|
|||||||
case ItemUpdateStatus.UploadingContent:
|
case ItemUpdateStatus.UploadingContent:
|
||||||
{
|
{
|
||||||
var uploaded = total > 0 ? ((float)processed / (float)total) : 0.0f;
|
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;
|
break;
|
||||||
}
|
}
|
||||||
case ItemUpdateStatus.UploadingPreviewFile:
|
case ItemUpdateStatus.UploadingPreviewFile:
|
||||||
|
Loading…
Reference in New Issue
Block a user