Skip to content

Commit 610c0ee

Browse files
committed
[FlashpointManager] Fix crash when removing component with a single file
1 parent c781fb3 commit 610c0ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FlashpointManager/src/Forms/Operate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ private void RemoveComponents()
237237
string[] infoText = File.ReadLines(workingComponent.InfoFile).Skip(1).ToArray();
238238

239239
long removedFiles = 0;
240-
long totalFiles = infoText.Length - 1;
240+
long totalFiles = infoText.Length;
241241
long totalSize = workingComponent.Size;
242242

243243
foreach (string file in infoText)

0 commit comments

Comments
 (0)