Skip to content

Commit

Permalink
Merge pull request #3299 from tom-englert/dev/WpfRefactoring
Browse files Browse the repository at this point in the history
Select first assembly from list after assembly list change
  • Loading branch information
siegfriedpammer authored Oct 6, 2024
2 parents 916a3fa + 69edba6 commit e26a173
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 e26a173

Please sign in to comment.