Browse Source

Fix "Open output in ILSpy" context menu item to focus the assembly in ILSpy tree correctly

pull/1728/head
Andreas Weizel 6 years ago
parent
commit
6e91d11178
  1. 4
      ILSpy/MainWindow.xaml.cs

4
ILSpy/MainWindow.xaml.cs

@ -341,10 +341,10 @@ namespace ICSharpCode.ILSpy
output.Write(string.Format("Cannot find '{0}' in command line specified assemblies.", navigateTo)); output.Write(string.Format("Cannot find '{0}' in command line specified assemblies.", navigateTo));
decompilerTextView.ShowText(output); decompilerTextView.ShowText(output);
} }
} else if (commandLineLoadedAssemblies.Count == 1) { } else if (relevantAssemblies.Count == 1) {
// NavigateTo == null and an assembly was given on the command-line: // NavigateTo == null and an assembly was given on the command-line:
// Select the newly loaded assembly // Select the newly loaded assembly
AssemblyTreeNode asmNode = assemblyListTreeNode.FindAssemblyNode(commandLineLoadedAssemblies[0]); AssemblyTreeNode asmNode = assemblyListTreeNode.FindAssemblyNode(relevantAssemblies[0]);
if (asmNode != null && treeView.SelectedItem == initialSelection) { if (asmNode != null && treeView.SelectedItem == initialSelection) {
SelectNode(asmNode); SelectNode(asmNode);
} }

Loading…
Cancel
Save