mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 06:56:40 +00:00
Sort node selection from treelistview before iterating on copy-paste.
This commit is contained in:
@@ -1100,12 +1100,12 @@ namespace TreelistView
|
||||
return m_nodesMap.ContainsKey(node);
|
||||
}
|
||||
|
||||
public IList<Node> GetSortedNodes()
|
||||
public void Sort()
|
||||
{
|
||||
SortedList<string, Node> list = new SortedList<string,Node>();
|
||||
foreach (Node node in m_nodes)
|
||||
list.Add(node.GetId(), node);
|
||||
return list.Values;
|
||||
m_nodes = new List<Node>(list.Values);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -378,6 +378,11 @@ namespace TreelistView
|
||||
get { return m_nodesSelection; }
|
||||
}
|
||||
|
||||
public void SortNodesSelection()
|
||||
{
|
||||
m_nodesSelection.Sort();
|
||||
}
|
||||
|
||||
[Browsable(false)]
|
||||
public Node SelectedNode
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user