From 69edba65ab96ff098b3c77761aa43348b0b9b0fa Mon Sep 17 00:00:00 2001 From: tom-englert Date: Sun, 6 Oct 2024 14:02:34 +0200 Subject: [PATCH] Select first assembly from list after assembly list change, instead of the root node. --- ILSpy/AssemblyTree/AssemblyTreeModel.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ILSpy/AssemblyTree/AssemblyTreeModel.cs b/ILSpy/AssemblyTree/AssemblyTreeModel.cs index 434f7c3dc..59a77e2a0 100644 --- a/ILSpy/AssemblyTree/AssemblyTreeModel.cs +++ b/ILSpy/AssemblyTree/AssemblyTreeModel.cs @@ -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 if (list.ListName != AssemblyList.ListName) { ShowAssemblyList(list); - SelectNode(Root); + SelectNode(Root?.Children.FirstOrDefault()); } }