Skip to content

Commit

Permalink
[TypeExplorer] Removed "Show in Quick Outline" from context menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
SlavaRa authored Oct 13, 2016
2 parents 1da16dd + 3d32006 commit 5cd6de6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions QuickNavigate/Forms/TypeExplorerForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ protected override void ShowContextMenu()

protected override void ShowContextMenu(Point position)
{
if (SelectedNode == null) return;
if (!(SelectedNode is ClassNode)) return;
ContextMenuStrip.Items.Clear();
var classModel = ((ClassNode) SelectedNode).Model;
var flags = classModel.Flags;
Expand All @@ -274,7 +274,6 @@ protected override void ShowContextMenu(Point position)
ContextMenuStrip.Items.Add(new ToolStripSeparator());
}
ContextMenuStrip.Items.Add(QuickContextMenuItem.GotoPositionOrLineMenuItem);
ContextMenuStrip.Items.Add(QuickContextMenuItem.ShowInQuickOutlineMenuItem);
ContextMenuStrip.Items.Add(QuickContextMenuItem.ShowInClassHierarchyMenuItem);
ContextMenuStrip.Items.Add(QuickContextMenuItem.ShowInProjectManagerMenuItem);
if (File.Exists(fileName)) ContextMenuStrip.Items.Add(QuickContextMenuItem.ShowInFileExplorerMenuItem);
Expand Down

0 comments on commit 5cd6de6

Please sign in to comment.