diff --git a/Directory.Packages.props b/Directory.Packages.props
index a84164d03e..f9cbde7a7b 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -27,7 +27,7 @@
-
+
@@ -45,10 +45,10 @@
-
-
-
-
+
+
+
+
diff --git a/ILSpy/AssemblyTree/AssemblyTreeModel.cs b/ILSpy/AssemblyTree/AssemblyTreeModel.cs
index 11df013904..dd5ba6fba1 100644
--- a/ILSpy/AssemblyTree/AssemblyTreeModel.cs
+++ b/ILSpy/AssemblyTree/AssemblyTreeModel.cs
@@ -767,6 +767,8 @@ private void TreeView_SelectionChanged()
}
else
{
+ // ensure that we are only connected once to the event, else we might get multiple notifications
+ ContextMenuProvider.ContextMenuClosed -= ContextMenuClosed;
ContextMenuProvider.ContextMenuClosed += ContextMenuClosed;
}
}