Fix progress bar reinitialization on the loops in dumpers.

This commit is contained in:
2019-04-19 23:40:37 +01:00
parent 5fdb81bc3b
commit 5ca3b09c47
2 changed files with 2 additions and 2 deletions

View File

@@ -379,9 +379,9 @@ namespace DiscImageChef.Core.Devices.Dumping
int pass = 1; int pass = 1;
bool forward = true; bool forward = true;
InitProgress?.Invoke();
repeatRetryLba: repeatRetryLba:
ulong[] tmpArray = resume.BadBlocks.ToArray(); ulong[] tmpArray = resume.BadBlocks.ToArray();
InitProgress?.Invoke();
foreach(ulong badSector in tmpArray) foreach(ulong badSector in tmpArray)
{ {
if(aborted) if(aborted)

View File

@@ -1562,10 +1562,10 @@ namespace DiscImageChef.Core.Devices.Dumping
else runningPersistent = true; else runningPersistent = true;
} }
InitProgress?.Invoke();
cdRepeatRetry: cdRepeatRetry:
ulong[] tmpArray = resume.BadBlocks.ToArray(); ulong[] tmpArray = resume.BadBlocks.ToArray();
List<ulong> sectorsNotEvenPartial = new List<ulong>(); List<ulong> sectorsNotEvenPartial = new List<ulong>();
InitProgress?.Invoke();
foreach(ulong badSector in tmpArray) foreach(ulong badSector in tmpArray)
{ {
if(aborted) if(aborted)