We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48ba7d1 commit 24617a6Copy full SHA for 24617a6
src/Files.App/Filesystem/FilesystemOperations/FileSystemProgress.cs
@@ -68,13 +68,15 @@ public FileSystemProgress(
68
public void Report(int? percentage = null)
69
{
70
Percentage = percentage;
71
- if (EnumerationCompleted &&
+ if ((
72
+ (EnumerationCompleted &&
73
ProcessedItemsCount == ItemsCount &&
74
ProcessedSize == TotalSize &&
75
+ TotalSize is not 0) ||
76
+ percentage is 100) &&
77
status is FileSystemStatusCode.InProgress or null)
78
79
status = FileSystemStatusCode.Success;
- CompletedTime = DateTimeOffset.Now;
80
}
81
82
if (status is FileSystemStatusCode.Success)
0 commit comments