diff --git a/MatterControlLib/PrinterControls/PrinterConnections/SetupStepComPortManual.cs b/MatterControlLib/PrinterControls/PrinterConnections/SetupStepComPortManual.cs index 18df92b5d..908c53a65 100644 --- a/MatterControlLib/PrinterControls/PrinterConnections/SetupStepComPortManual.cs +++ b/MatterControlLib/PrinterControls/PrinterConnections/SetupStepComPortManual.cs @@ -76,6 +76,9 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections printerComPortError.Text = "Attempting to connect".Localize() + "..."; printerComPortError.TextColor = theme.TextColor; + printer.Connection.ConnectionFailed += Connection_CommunicationStateChanged; + printer.Connection.ConnectionSucceeded += Connection_CommunicationStateChanged; + printer.Settings.Helpers.SetComPort(GetSelectedSerialPort()); printer.Connection.Connect(); @@ -114,6 +117,8 @@ namespace MatterHackers.MatterControl.PrinterControls.PrinterConnections { // Unregister listeners printer.Connection.CommunicationStateChanged -= Connection_CommunicationStateChanged; + printer.Connection.ConnectionFailed -= Connection_CommunicationStateChanged; + printer.Connection.ConnectionSucceeded -= Connection_CommunicationStateChanged; base.OnClosed(e); }