Browse Source

Fix #1265: ILSpy doesn't decompile .baml file when reloading assembies - prevent ILSpy from executing decompilation requests with zero tree nodes selected.

pull/1305/head
Siegfried Pammer 7 years ago
parent
commit
6da7d8098e
  1. 2
      ILSpy/MainWindow.xaml.cs

2
ILSpy/MainWindow.xaml.cs

@ -773,7 +773,7 @@ namespace ICSharpCode.ILSpy @@ -773,7 +773,7 @@ namespace ICSharpCode.ILSpy
void DecompileSelectedNodes(DecompilerTextViewState state = null, bool recordHistory = true)
{
if (ignoreDecompilationRequests)
if (ignoreDecompilationRequests || treeView.SelectedItems.Count == 0)
return;
if (recordHistory) {

Loading…
Cancel
Save