Browse Source

Remove unnecessary duplicate invocation of the decompiler when opening a new view.

pull/1827/head
Siegfried Pammer 6 years ago
parent
commit
654613b75c
  1. 3
      ILSpy/Commands/DecompileInNewViewCommand.cs

3
ILSpy/Commands/DecompileInNewViewCommand.cs

@ -67,9 +67,6 @@ namespace ICSharpCode.ILSpy.Commands @@ -67,9 +67,6 @@ namespace ICSharpCode.ILSpy.Commands
DockWorkspace.Instance.Documents.Add(new ViewModels.DecompiledDocumentModel(title, title) { Language = MainWindow.Instance.CurrentLanguage, LanguageVersion = MainWindow.Instance.CurrentLanguageVersion });
DockWorkspace.Instance.ActiveDocument = DockWorkspace.Instance.Documents.Last();
MainWindow.Instance.SelectNodes(nodes);
MainWindow.Instance.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Background, (Action)delegate {
DockWorkspace.Instance.GetTextView().DecompileAsync(MainWindow.Instance.CurrentLanguage, nodes, new DecompilationOptions());
});
}
}
}

Loading…
Cancel
Save