Fix percentage in Avalonia

This commit is contained in:
Matt Nadareski
2020-08-07 22:05:04 -07:00
parent 4735bef7b4
commit f74dc01657

View File

@@ -785,7 +785,7 @@ namespace DICUI.Avalonia
/// </summary>
private void ProgressUpdated(object sender, FileProtection value)
{
string message = $"{value.Percentage}% - {value.Filename}: {value.Protection}";
string message = $"{value.Percentage * 100:N2}%: {value.Filename} - {value.Protection}";
this.Find<TextBlock>("StatusLabel").Text = message;
ViewModels.LoggerViewModel.VerboseLogLn(message);
}