Merge pull request #1336 from konpl/develop

Added ability to run External tools on folders
This commit is contained in:
David Sparer
2019-03-08 07:43:01 -06:00
committed by GitHub
2 changed files with 9 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
@@ -7,6 +7,7 @@ using System.IO;
using mRemoteNG.App;
using mRemoteNG.Connection;
using mRemoteNG.Connection.Protocol;
using mRemoteNG.Container;
using mRemoteNG.Messages;
// ReSharper disable ArrangeAccessorOwnerBody
@@ -126,6 +127,11 @@ namespace mRemoteNG.Tools
}
ConnectionInfo = startConnectionInfo;
if (ConnectionInfo.IsContainer)
{
(ConnectionInfo as ContainerInfo).Children.ForEach(child => Start(child));
return;
}
if (TryIntegrate)
StartIntegrated();

View File

@@ -504,7 +504,6 @@ namespace mRemoteNG.UI.Controls
_cMenTreeDisconnect.Enabled = true;
_cMenTreeToolsTransferFile.Enabled = false;
_cMenTreeToolsExternalApps.Enabled = false;
}
internal void ShowHideMenuItemsForPuttyNode(ConnectionInfo connectionInfo)
@@ -838,7 +837,8 @@ namespace mRemoteNG.UI.Controls
try
{
if (_connectionTree.SelectedNode.GetTreeNodeType() == TreeNodeType.Connection |
_connectionTree.SelectedNode.GetTreeNodeType() == TreeNodeType.PuttySession)
_connectionTree.SelectedNode.GetTreeNodeType() == TreeNodeType.PuttySession |
_connectionTree.SelectedNode.GetTreeNodeType() == TreeNodeType.Container)
externalTool.Start(_connectionTree.SelectedNode);
}
catch (Exception ex)