[GUI] Update progress tracking in ImageChecksumViewModel

This commit is contained in:
2025-10-26 19:36:13 +00:00
parent c1d5244d9c
commit 334989c9c8

View File

@@ -285,6 +285,8 @@ public sealed partial class ImageChecksumViewModel : ViewModelBase
currentTrack.Sequence,
opticalMediaImage.Tracks.Count);
Progress2Max = currentTrack.EndSector - currentTrack.StartSector + 1;
ProgressValue++;
});
@@ -365,7 +367,7 @@ public sealed partial class ImageChecksumViewModel : ViewModelBase
await Dispatcher.UIThread.InvokeAsync(() =>
{
Progress2Value = (int)(doneSectorsToInvoke / SECTORS_TO_READ);
Progress2Value = doneSectorsToInvoke;
Progress2Text = $"Hashing sectors {doneSectorsToInvoke} to {
doneSectorsToInvoke + SECTORS_TO_READ} of track {currentTrack.Sequence}";
@@ -396,7 +398,7 @@ public sealed partial class ImageChecksumViewModel : ViewModelBase
await Dispatcher.UIThread.InvokeAsync(() =>
{
Progress2Value = (int)(doneSectorsToInvoke / SECTORS_TO_READ);
Progress2Value = (int)doneSectorsToInvoke;
Progress2Text = $"Hashing sectors {doneSectorsToInvoke} to {
doneSectorsToInvoke + (sectors - doneSectorsToInvoke)} of track {