Browse Source

Select first assembly from list after assembly list change, instead of the root node.

pull/3299/head
tom-englert 7 months ago
parent
commit
69edba65ab
  1. 4
      ILSpy/AssemblyTree/AssemblyTreeModel.cs

4
ILSpy/AssemblyTree/AssemblyTreeModel.cs

@ -392,7 +392,9 @@ namespace ICSharpCode.ILSpy.AssemblyTree @@ -392,7 +392,9 @@ namespace ICSharpCode.ILSpy.AssemblyTree
AvalonEditTextOutput output = new();
if (FormatExceptions(App.StartupExceptions.ToArray(), output))
{
DockWorkspace.Instance.ShowText(output);
}
}
private static bool FormatExceptions(App.ExceptionData[] exceptions, ITextOutput output)
@ -413,7 +415,7 @@ namespace ICSharpCode.ILSpy.AssemblyTree @@ -413,7 +415,7 @@ namespace ICSharpCode.ILSpy.AssemblyTree
if (list.ListName != AssemblyList.ListName)
{
ShowAssemblyList(list);
SelectNode(Root);
SelectNode(Root?.Children.FirstOrDefault());
}
}

Loading…
Cancel
Save