From 6e91d1117850127c7e3443f8716c125a36798c32 Mon Sep 17 00:00:00 2001 From: Andreas Weizel Date: Sat, 28 Sep 2019 12:44:25 +0200 Subject: [PATCH] Fix "Open output in ILSpy" context menu item to focus the assembly in ILSpy tree correctly --- ILSpy/MainWindow.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ILSpy/MainWindow.xaml.cs b/ILSpy/MainWindow.xaml.cs index 594cb4f2c..b078a390f 100644 --- a/ILSpy/MainWindow.xaml.cs +++ b/ILSpy/MainWindow.xaml.cs @@ -341,10 +341,10 @@ namespace ICSharpCode.ILSpy output.Write(string.Format("Cannot find '{0}' in command line specified assemblies.", navigateTo)); decompilerTextView.ShowText(output); } - } else if (commandLineLoadedAssemblies.Count == 1) { + } else if (relevantAssemblies.Count == 1) { // NavigateTo == null and an assembly was given on the command-line: // Select the newly loaded assembly - AssemblyTreeNode asmNode = assemblyListTreeNode.FindAssemblyNode(commandLineLoadedAssemblies[0]); + AssemblyTreeNode asmNode = assemblyListTreeNode.FindAssemblyNode(relevantAssemblies[0]); if (asmNode != null && treeView.SelectedItem == initialSelection) { SelectNode(asmNode); }