Browse Source

Merge pull request #3299 from tom-englert/dev/WpfRefactoring

Select first assembly from list after assembly list change
pull/3307/head
Siegfried Pammer 7 months ago committed by GitHub
parent
commit
e26a1736a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  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