Skip to content

Commit 7536bdf

Browse files
committed
Using the default ContextMenuStrip property prevents right click messages.
1 parent 6d2b648 commit 7536bdf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ReClass.NET/Forms/MainForm.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ReClass.NET/UI/MemoryViewControl.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ public ClassNode ClassNode
8888
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
8989
public MemoryBuffer Memory { get; set; }
9090

91+
public ContextMenuStrip NodeContextMenuStrip { get; set; }
92+
9193
public event EventHandler SelectionChanged;
9294
public event NodeClickEventHandler ChangeClassTypeClick;
9395
public event NodeClickEventHandler ChangeWrappedTypeClick;
@@ -727,7 +729,7 @@ public void SetSelectedNodes(IEnumerable<SelectedNodeInfo> nodes)
727729
/// <param name="location">The location where the context menu should be shown.</param>
728730
private void ShowNodeContextMenu(Point location)
729731
{
730-
ContextMenuStrip?.Show(this, location);
732+
NodeContextMenuStrip?.Show(this, location);
731733
}
732734

733735
/// <summary>

0 commit comments

Comments
 (0)