mirror of
https://github.com/ReneLergner/WPinternals.git
synced 2026-08-09 17:41:13 +10:00
fix: Handle empty flash part list
This is used to clear the red flashing status we need to handle this differently for spec A
This commit is contained in:
@@ -2657,6 +2657,8 @@ namespace WPinternals
|
|||||||
UInt64 totalwritten = 0;
|
UInt64 totalwritten = 0;
|
||||||
int ProgressPercentage = 0;
|
int ProgressPercentage = 0;
|
||||||
|
|
||||||
|
if (FlashParts != null)
|
||||||
|
{
|
||||||
foreach (FlashPart Part in FlashParts)
|
foreach (FlashPart Part in FlashParts)
|
||||||
{
|
{
|
||||||
InputStreamLength += (ulong)Part.Stream.Length;
|
InputStreamLength += (ulong)Part.Stream.Length;
|
||||||
@@ -2704,6 +2706,7 @@ namespace WPinternals
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
UpdateWorkingStatus(null, null, 100, WPinternalsStatus.Flashing);
|
UpdateWorkingStatus(null, null, 100, WPinternalsStatus.Flashing);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user