Skip to content

Commit

Permalink
Select first assembly from list after assembly list change, instead o…
Browse files Browse the repository at this point in the history
…f the root node.
  • Loading branch information
tom-englert committed Oct 6, 2024
1 parent 916a3fa commit 69edba6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ILSpy/AssemblyTree/AssemblyTreeModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,9 @@ private void OpenAssemblies()

AvalonEditTextOutput output = new();
if (FormatExceptions(App.StartupExceptions.ToArray(), output))
{
DockWorkspace.Instance.ShowText(output);
}
}

private static bool FormatExceptions(App.ExceptionData[] exceptions, ITextOutput output)
Expand All @@ -413,7 +415,7 @@ private void ShowAssemblyList(string name)
if (list.ListName != AssemblyList.ListName)
{
ShowAssemblyList(list);
SelectNode(Root);
SelectNode(Root?.Children.FirstOrDefault());
}
}

Expand Down

0 comments on commit 69edba6

Please sign in to comment.