mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-26 12:08:37 +08:00
Merge pull request #1336 from konpl/develop
Added ability to run External tools on folders
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user