Skip to content

Commit ad6fc4d

Browse files
committed
修复了拖放文件新建任务时,输入文件的数量可能小于允许的最小文件数量的BUG
1 parent 546ea68 commit ad6fc4d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

SimpleFFmpegGUI.WPF/Panels/FileIOPanel.xaml.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ public bool Update(TaskType type, List<InputArguments> inputs, string output)
213213
newInput.Update();
214214
Inputs.Add(newInput);
215215
}
216+
while(Inputs.Count< MinInputsCount)
217+
{
218+
Inputs.Add(new InputArgumentsDetail());
219+
}
216220
OutputDir=Path.GetDirectoryName(output);
217221
OutputFileName=Path.GetFileName(output);
218222
return inputs.Count <= MaxInputsCount;

日志.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,4 +413,8 @@
413413

414414
## 20220714
415415

416-
【Web】新增显示CPU占用率功能
416+
【Web】新增显示CPU占用率功能
417+
418+
## 20220826
419+
420+
【WPF】修复了拖放文件新建任务时,输入文件的数量可能小于允许的最小文件数量的BUG

0 commit comments

Comments
 (0)