Skip to content

Commit

Permalink
-修复添加文件到补丁列表时会出错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wmjordan committed Dec 14, 2022
1 parent 7640cfd commit a36d5a4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions App/Functions/PatcherControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,9 @@ void _AddDocumentWorker_ProgressChanged(object sender, ProgressChangedEventArgs
}

void AddItem(SourceItem item) {
if (item == null) {
return;
if (item is SourceItem.Pdf) {
AddItems(new SourceItem[] { item });
}
AddItems(new SourceItem[] { item });
}

void AddItems(System.Collections.ICollection items) {
Expand Down

0 comments on commit a36d5a4

Please sign in to comment.