From 39fc03c5504e19398a6f38e6ed1b80443f7a7428 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Fri, 6 Oct 2017 09:57:39 +0200 Subject: [PATCH] Revert "Replace new message string with a logging line" This reverts commit e052c3ba83f1e90777375f51e2612ec1df17fc55. CURA-4398 --- plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py index a352d931d1..634cf2eff3 100755 --- a/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py +++ b/plugins/UM3NetworkPrinting/NetworkPrinterOutputDevice.py @@ -843,9 +843,13 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice): # This function can fail to actually start a print due to not being authenticated or another print already # being in progress. def startPrint(self): + # Check if we're already writing if not self._write_finished: - Logger.log("d", "Sending new jobs (temporarily) blocked, still sending the previous print job.") + self._error_message = Message( + i18n_catalog.i18nc("@info:status", + "Sending new jobs (temporarily) blocked, still sending the previous print job.")) + self._error_message.show() return # Indicate we're starting a new write action, is set back to True at the end of this method