Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/blame/commit/4b5b0ad751203bcf65d286e3e49e4f0f45ff07ed/NzbDrone.Common/Expansive/TreeNodeList.cs
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Common.Expansive
|
|
|
|
|
{
|
|
|
|
|
internal class TreeNodeList<T> : List<TreeNode<T>>
|
|
|
|
|
{
|
|
|
|
|
public TreeNode<T> Parent;
|
|
|
|
|
|
|
|
|
|
public TreeNodeList(TreeNode<T> Parent)
|
|
|
|
|
{
|
|
|
|
|
this.Parent = Parent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public new TreeNode<T> Add(TreeNode<T> Node)
|
|
|
|
|
{
|
|
|
|
|
base.Add(Node);
|
|
|
|
|
Node.Parent = Parent;
|
|
|
|
|
return Node;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public TreeNode<T> Add(T Value)
|
|
|
|
|
{
|
|
|
|
|
return Add(new TreeNode<T>(Value));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return "Count=" + Count.ToString();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|