mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
white space and log message
This commit is contained in:
@@ -16,17 +16,15 @@ namespace mRemoteNG.UI.Tabs
|
||||
|
||||
public ConnectionTab()
|
||||
{
|
||||
InitializeComponent();
|
||||
InitializeComponent();
|
||||
FormClosing += formClosingEventHandler;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#region TabEvents
|
||||
private void formClosingEventHandler(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
|
||||
try
|
||||
{
|
||||
if (Settings.Default.ConfirmCloseConnection == (int)ConfirmCloseEnum.All)
|
||||
@@ -42,11 +40,11 @@ namespace mRemoteNG.UI.Tabs
|
||||
}
|
||||
}
|
||||
var interfaceControl = (InterfaceControl)Tag;
|
||||
interfaceControl.Protocol.Close();
|
||||
interfaceControl.Protocol.Close();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Runtime.MessageCollector.AddExceptionMessage("UI.Window.Connection.CloseConnectionTab() failed", ex);
|
||||
Runtime.MessageCollector.AddExceptionMessage("UI.Tab.CloseConnectionTab() failed", ex);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user