mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
cleanup
This commit is contained in:
@@ -140,25 +140,6 @@ namespace mRemoteNG.UI.Controls
|
||||
RefreshObject(senderAsConnectionInfo);
|
||||
}
|
||||
|
||||
private void ExpandPreviouslyOpenedFolders()
|
||||
{
|
||||
var containerList = ConnectionTreeModel.GetRecursiveChildList(GetRootConnectionNode()).OfType<ContainerInfo>();
|
||||
var previouslyExpandedNodes = containerList.Where(container => container.IsExpanded);
|
||||
ExpandedObjects = previouslyExpandedNodes;
|
||||
this.InvokeRebuildAll(true);
|
||||
}
|
||||
|
||||
private void OpenConnectionsFromLastSession()
|
||||
{
|
||||
if (!Settings.Default.OpenConsFromLastSession || Settings.Default.NoReconnect) return;
|
||||
var connectionInfoList = GetRootConnectionNode().GetRecursiveChildList().Where(node => !(node is ContainerInfo));
|
||||
var previouslyOpenedConnections = connectionInfoList.Where(item => item.PleaseConnect);
|
||||
foreach (var connectionInfo in previouslyOpenedConnections)
|
||||
{
|
||||
ConnectionInitiator.OpenConnection(connectionInfo);
|
||||
}
|
||||
}
|
||||
|
||||
private void ExecutePostSetupActions()
|
||||
{
|
||||
foreach (var action in PostSetupActions)
|
||||
@@ -305,12 +286,6 @@ namespace mRemoteNG.UI.Controls
|
||||
}
|
||||
}
|
||||
|
||||
private void ExpandRootConnectionNode()
|
||||
{
|
||||
var rootConnectionNode = GetRootConnectionNode();
|
||||
this.InvokeExpand(rootConnectionNode);
|
||||
}
|
||||
|
||||
private void tvConnections_AfterSelect(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user