Skip to content

Commit

Permalink
fixup for b3ae777
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Oct 10, 2023
1 parent 727fb65 commit 6a07ffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/Repositories/ProgressScalePercentsByFileSize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public void Report(int currentFilePercent)
// Only report each percentage once, to avoid spamming UI calls
if (percent > lastPercent)
{
percentProgress.Report(percent);
percentProgress?.Report(percent);
lastPercent = percent;
}
}
Expand All @@ -51,7 +51,7 @@ public void NextFile()
++currentIndex;
if (basePercent > lastPercent)
{
percentProgress.Report(basePercent);
percentProgress?.Report(basePercent);
lastPercent = basePercent;
}
}
Expand Down

0 comments on commit 6a07ffd

Please sign in to comment.