Browse Source

if ActiveAutoLoadedAssembly is set, load it before trying to access it

pull/1012/head
Siegfried Pammer 8 years ago
parent
commit
4172da43d6
  1. 5
      ILSpy/MainWindow.xaml.cs

5
ILSpy/MainWindow.xaml.cs

@ -345,6 +345,10 @@ namespace ICSharpCode.ILSpy @@ -345,6 +345,10 @@ namespace ICSharpCode.ILSpy
ShowAssemblyList(this.assemblyList);
if (sessionSettings.ActiveAutoLoadedAssembly != null) {
this.assemblyList.Open(sessionSettings.ActiveAutoLoadedAssembly, true);
}
Dispatcher.BeginInvoke(DispatcherPriority.Loaded, new Action(() => OpenAssemblies(spySettings)));
}
@ -356,7 +360,6 @@ namespace ICSharpCode.ILSpy @@ -356,7 +360,6 @@ namespace ICSharpCode.ILSpy
if (sessionSettings.ActiveTreeViewPath != null) {
node = FindNodeByPath(sessionSettings.ActiveTreeViewPath, true);
if (node == this.assemblyListTreeNode && sessionSettings.ActiveAutoLoadedAssembly != null) {
this.assemblyList.Open(sessionSettings.ActiveAutoLoadedAssembly, true);
node = FindNodeByPath(sessionSettings.ActiveTreeViewPath, true);
}
}

Loading…
Cancel
Save