show printer name when reporting an error
This commit is contained in:
parent
eb86d719e1
commit
e29316197c
1 changed files with 8 additions and 7 deletions
|
|
@ -987,16 +987,17 @@ namespace MatterHackers.MatterControl
|
|||
{
|
||||
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() + ":"
|
||||
+ $" \"{line}\".";
|
||||
|
||||
if (sender is PrinterConnection printerConnection)
|
||||
{
|
||||
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() + ":"
|
||||
+ $" \"{line}\".";
|
||||
|
||||
UiThread.RunOnIdle(() =>
|
||||
{
|
||||
var prinerName = printerConnection.Printer.Settings.GetValue(SettingsKey.printer_name);
|
||||
var messageBox = new StyledMessageBox.MessageBoxPage((clickedOk) =>
|
||||
{
|
||||
if (clickedOk && printerConnection.Paused)
|
||||
|
|
@ -1005,7 +1006,7 @@ namespace MatterHackers.MatterControl
|
|||
}
|
||||
},
|
||||
message,
|
||||
"Printer Hardware Error".Localize(),
|
||||
prinerName + " is reporting a Hardware Error".Localize(),
|
||||
StyledMessageBox.MessageType.YES_NO,
|
||||
null,
|
||||
400,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue