Skip to content

Commit

Permalink
Check list length in relationships tab
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Sep 16, 2024
1 parent 865f76f commit bf47cd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GUI/Controls/ModInfoTabs/Relationships.cs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,8 @@ private IEnumerable<TreeNode> ForwardRelationships(IRegistryQuerier registry, Ck
return null;
}
else if (//childNodes is [var node and {Tag: CkanModule module}]
childNodes[0] is var node and {Tag: CkanModule module}
childNodes.Count == 1
&& childNodes[0] is var node and {Tag: CkanModule module}
&& relDescr.ContainsAny(new string[] { module.identifier }))
{
// Only one exact match module, return a simple node
Expand Down

0 comments on commit bf47cd5

Please sign in to comment.