Browse Source

Add indeterminate progress reporting back

pull/5/head
Ionite 1 year ago
parent
commit
2bf937ddc6
No known key found for this signature in database
  1. 5
      StabilityMatrix/ViewModels/InstallerViewModel.cs
  2. 7
      StabilityMatrix/ViewModels/OneClickInstallViewModel.cs

5
StabilityMatrix/ViewModels/InstallerViewModel.cs

@ -401,11 +401,16 @@ public partial class InstallerViewModel : ObservableObject
{
ProgressText = $"Installing git... {progress.Percentage:N0}%";
}
else if (progress.Title != null && progress.Title.Contains("Unpacking"))
{
ProgressText = $"Unpacking resources... {progress.Percentage:N0}%";
}
else
{
ProgressText = progress.Message;
}
IsIndeterminate = progress.IsIndeterminate;
ProgressValue = Convert.ToInt32(progress.Percentage);
});

7
StabilityMatrix/ViewModels/OneClickInstallViewModel.cs

@ -85,11 +85,16 @@ public partial class OneClickInstallViewModel : ObservableObject
{
SubHeaderText = $"Installing git... {progress.Percentage:N0}%";
}
else if (progress.Title != null && progress.Title.Contains("Unpacking"))
{
SubHeaderText = $"Unpacking resources... {progress.Percentage:N0}%";
}
else if (progress.Message != null)
{
SubHeaderText = progress.Message;
}
IsIndeterminate = progress.IsIndeterminate;
OneClickInstallProgress = Convert.ToInt32(progress.Percentage);
});

Loading…
Cancel
Save