Update media scan GUI error times via events.

This commit is contained in:
2019-04-21 01:54:06 +01:00
parent a800ddb0ab
commit 5dd3903005
6 changed files with 26 additions and 4 deletions

View File

@@ -345,6 +345,7 @@ namespace DiscImageChef.Core.Devices.Scanning
}
else
{
ScanUnreadable?.Invoke(blocksToRead);
results.Errored += blocksToRead;
for(ulong b = i; b < i + blocksToRead; b++) results.UnreadableSectors.Add(b);
@@ -417,6 +418,7 @@ namespace DiscImageChef.Core.Devices.Scanning
// TODO: Separate errors on kind of errors.
else
{
ScanUnreadable?.Invoke(blocksToRead);
results.Errored += blocksToRead;
for(ulong b = i; b < i + blocksToRead; b++) results.UnreadableSectors.Add(b);