Reorder increment to make progress update less weird

This commit is contained in:
Bartłomiej Dach 2023-05-06 19:39:52 +02:00
parent bb17b684b0
commit 3f63fd7f4d
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -51,12 +51,12 @@ public override void ExportToStream(TModel model, Stream outputStream, ProgressN
writer.Write(file.Filename, stream);
}
i++;
if (notification != null)
{
notification.Progress = (float)(i + 1) / fileCount;
notification.Progress = (float)i / fileCount;
}
i++;
}
if (anyFileMissing)