Skip to content

Commit

Permalink
Always show download progress bytes decimals
Browse files Browse the repository at this point in the history
to make the value display more stable
closes #225
  • Loading branch information
hhyyrylainen committed Dec 13, 2022
1 parent 90d9ca7 commit 6b41c24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RevolutionaryGamesCommon
3 changes: 1 addition & 2 deletions ThriveLauncher/Models/ProgressDisplayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,8 @@ private void UpdateTextualProgress(FilePrepareProgress progress)

var maxValue = progress.FinishedProgress?.BytesToMiB(2, false) ?? Resources.UnknownNumber;

// TODO: showing consistently 2 decimal places would make this nicer to read
textualProgress!.Text = string.Format(Resources.DownloadProgressDisplay,
progress.CurrentProgress.Value.BytesToMiB(2, false), maxValue);
progress.CurrentProgress.Value.BytesToMiB(2, false, true), maxValue);
}
else if (progress.CurrentStep == FilePrepareStep.Processing && progress.CurrentProgress != null)
{
Expand Down

0 comments on commit 6b41c24

Please sign in to comment.