Browse Source

feature enbale command only in treeview

pull/1725/head
jkuehner 6 years ago committed by Siegfried Pammer
parent
commit
853987803b
  1. 4
      ILSpy/Commands/DecompileInNewViewCommand.cs

4
ILSpy/Commands/DecompileInNewViewCommand.cs

@ -28,11 +28,15 @@ namespace ICSharpCode.ILSpy.Analyzers @@ -28,11 +28,15 @@ namespace ICSharpCode.ILSpy.Analyzers
{
public bool IsVisible(TextViewContext context)
{
if (context.SelectedTreeNodes == null)
return false;
return true;
}
public bool IsEnabled(TextViewContext context)
{
if (context.SelectedTreeNodes == null)
return false;
return true;
}

Loading…
Cancel
Save