Adjusted uploading progress bar so it doesn't jump back after finishing uploading content.

This commit is contained in:
Robin Sonneveld 2021-08-06 17:32:45 +02:00
parent 2be5012647
commit 8efc0414c4

View File

@ -246,7 +246,7 @@ namespace Steamworks.Ugc
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: