mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Removed empty arg overload for OpenConnection(). We always require a connectioninfo object
This commit is contained in:
@@ -15,19 +15,6 @@ namespace mRemoteNG.Connection
|
||||
{
|
||||
public static class ConnectionInitiator
|
||||
{
|
||||
//TODO Fix for TreeListView
|
||||
public static void OpenConnection()
|
||||
{
|
||||
try
|
||||
{
|
||||
OpenConnection(ConnectionInfo.Force.None);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Runtime.MessageCollector.AddMessage(MessageClass.ErrorMsg, Language.strConnectionOpenFailed + Environment.NewLine + ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
//TODO Fix for TreeListView
|
||||
public static void OpenConnection(ConnectionInfo.Force Force)
|
||||
{
|
||||
|
||||
@@ -272,7 +272,7 @@ namespace mRemoteNG.UI.Window
|
||||
//if (e.Button != MouseButtons.Left) return;
|
||||
if (clickedNode.GetTreeNodeType() != TreeNodeType.Connection && clickedNode.GetTreeNodeType() != TreeNodeType.PuttySession) return;
|
||||
if (Settings.Default.SingleClickOnConnectionOpensIt)
|
||||
ConnectionInitiator.OpenConnection();
|
||||
ConnectionInitiator.OpenConnection(SelectedNode);
|
||||
|
||||
if (Settings.Default.SingleClickSwitchesToOpenConnection)
|
||||
ConnectionInitiator.SwitchToOpenConnection(SelectedNode);
|
||||
@@ -291,7 +291,7 @@ namespace mRemoteNG.UI.Window
|
||||
if (clickedNode?.GetTreeNodeType() == TreeNodeType.Connection |
|
||||
clickedNode?.GetTreeNodeType() == TreeNodeType.PuttySession)
|
||||
{
|
||||
ConnectionInitiator.OpenConnection();
|
||||
ConnectionInitiator.OpenConnection(SelectedNode);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -838,7 +838,7 @@ namespace mRemoteNG.UI.Window
|
||||
if (tvConnections.SelectedNode.Tag is ConnectionInfo)
|
||||
{
|
||||
e.Handled = true;
|
||||
ConnectionInitiator.OpenConnection();
|
||||
ConnectionInitiator.OpenConnection(SelectedNode);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user