From 704d4c1d7bf3d64ae7262217b7d28c975c33dbb6 Mon Sep 17 00:00:00 2001 From: John Lewin Date: Fri, 9 Nov 2018 12:04:56 -0800 Subject: [PATCH] Fix post-rebase errors --- MatterControlLib/ApplicationView/ApplicationController.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/MatterControlLib/ApplicationView/ApplicationController.cs b/MatterControlLib/ApplicationView/ApplicationController.cs index ed6623f34..fe2f95f4d 100644 --- a/MatterControlLib/ApplicationView/ApplicationController.cs +++ b/MatterControlLib/ApplicationView/ApplicationController.cs @@ -1399,16 +1399,15 @@ namespace MatterHackers.MatterControl } } - public void Connection_ErrorReported(object sender, EventArgs e) + public void Connection_ErrorReported(object sender, string line) { - var foundStringEventArgs = e as FoundStringEventArgs; - if (foundStringEventArgs != null) + if (line != null) { string message = "Your printer is reporting a HARDWARE ERROR and has been paused. Check the error and cancel the print if required.".Localize() + "\n" + "\n" + "Error Reported".Localize() + ":" - + $" \"{foundStringEventArgs.LineToCheck}\"."; + + $" \"{line}\"."; UiThread.RunOnIdle(() => StyledMessageBox.ShowMessageBox((clickedOk) => {