From d3a2ba26ba68da17ff97e7fc73b9d97895f0a25d Mon Sep 17 00:00:00 2001 From: David Sparer Date: Fri, 10 May 2019 08:10:37 -0500 Subject: [PATCH] only allow pushing inheritance from containers --- mRemoteV1/UI/Controls/ConnectionContextMenu.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mRemoteV1/UI/Controls/ConnectionContextMenu.cs b/mRemoteV1/UI/Controls/ConnectionContextMenu.cs index 481b6d077..0f53f8f34 100644 --- a/mRemoteV1/UI/Controls/ConnectionContextMenu.cs +++ b/mRemoteV1/UI/Controls/ConnectionContextMenu.cs @@ -501,6 +501,7 @@ namespace mRemoteNG.UI.Controls _cMenTreeMoveUp.Enabled = false; _cMenTreeMoveDown.Enabled = false; _cMenTreeConnectWithOptionsViewOnly.Enabled = false; + _cMenTreeApplyInheritanceToChildren.Enabled = false; } internal void ShowHideMenuItemsForRootConnectionNode() @@ -518,6 +519,7 @@ namespace mRemoteNG.UI.Controls _cMenTreeMoveUp.Enabled = false; _cMenTreeMoveDown.Enabled = false; _cMenTreeConnectWithOptionsViewOnly.Enabled = false; + _cMenTreeApplyInheritanceToChildren.Enabled = false; } internal void ShowHideMenuItemsForContainer(ContainerInfo containerInfo) @@ -554,6 +556,7 @@ namespace mRemoteNG.UI.Controls _cMenTreeImport.Enabled = false; _cMenTreeExportFile.Enabled = false; _cMenTreeConnectWithOptionsViewOnly.Enabled = false; + _cMenTreeApplyInheritanceToChildren.Enabled = false; } internal void ShowHideMenuItemsForConnectionNode(ConnectionInfo connectionInfo) @@ -575,6 +578,8 @@ namespace mRemoteNG.UI.Controls if (connectionInfo.Protocol != ProtocolType.RDP && connectionInfo.Protocol != ProtocolType.VNC) _cMenTreeConnectWithOptionsViewOnly.Enabled = false; + + _cMenTreeApplyInheritanceToChildren.Enabled = false; } internal void DisableShortcutKeys()