[mod前置数量显示错误]在有前置的mod详情界面,离开再回来,mod前置显示增加

Fixes #5248
This commit is contained in:
hadesanc1
2025-01-13 20:06:41 +08:00
parent a8bb82b033
commit 96c35a3bed
@@ -1481,7 +1481,9 @@ Retry:
If Deps.Any Then
For Each DepProject In Deps.Where(Function(id) CompProjectCache.ContainsKey(id)).Select(Function(id) CompProjectCache(id))
For Each File In CompFilesCache(ProjectId)
If File.RawDependencies.Contains(DepProject.Id) AndAlso DepProject.Id <> ProjectId Then
If File.RawDependencies.Contains(DepProject.Id) AndAlso
DepProject.Id <> ProjectId AndAlso
Not File.Dependencies.Contains(DepProject.Id) Then
File.Dependencies.Add(DepProject.Id)
End If
Next