Context menu item enable/disabled based on node type is now working again

This commit is contained in:
David Sparer
2016-09-15 10:01:20 -06:00
parent 9807231b72
commit 3fe5801366

View File

@@ -127,6 +127,7 @@ namespace mRemoteNG.UI.Window
private void SetContextMenuEventHandlers()
{
_contextMenu.Opening += (sender, args) => _contextMenu.ShowHideTreeContextMenuItems(SelectedNode);
_contextMenu.ConnectClicked += (sender, args) => ConnectionInitiator.OpenConnection(SelectedNode, ConnectionInfo.Force.DoNotJump);
_contextMenu.ConnectToConsoleSessionClicked += (sender, args) => ConnectionInitiator.OpenConnection(SelectedNode, ConnectionInfo.Force.UseConsoleSession | ConnectionInfo.Force.DoNotJump);
_contextMenu.DontConnectToConsoleSessionClicked += (sender, args) => ConnectionInitiator.OpenConnection(SelectedNode, ConnectionInfo.Force.DontUseConsoleSession | ConnectionInfo.Force.DoNotJump);