fix context menu

This commit is contained in:
pointfeev 2022-08-18 00:02:47 -04:00
parent 87fa2fef31
commit 896d63a7aa
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@
<UseWindowsForms>True</UseWindowsForms>
<ApplicationIcon>Resources\ini.ico</ApplicationIcon>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<Version>3.6.1.1</Version>
<Version>3.6.1.2</Version>
<PackageIcon>Resources\ini.ico</PackageIcon>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Copyright>2021, pointfeev (https://github.com/pointfeev)</Copyright>

View file

@ -638,7 +638,7 @@ internal partial class SelectForm : CustomForm
TreeNode node = e.Node;
if (node is null || !node.Bounds.Contains(e.Location) || e.Button != MouseButtons.Right || e.Clicks != 1)
return;
using ContextMenuStrip contextMenuStrip = new();
ContextMenuStrip contextMenuStrip = new();
selectionTreeView.SelectedNode = node;
string id = node.Name;
Platform platform = (Platform)node.Tag;