mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 00:45:56 +08:00
Warning message is shown if the printer is still active.
CURA-49
This commit is contained in:
parent
2034aeb5c1
commit
1a44c394e1
@ -108,6 +108,10 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||
pass #Do Nothing
|
||||
|
||||
def startPrint(self):
|
||||
if self._progress != 0:
|
||||
self._error_message = Message(i18n_catalog.i18nc("@info:status", "Printer is still printing. Unable to start a new job."))
|
||||
self._error_message.show()
|
||||
return
|
||||
try:
|
||||
self._progress_message = Message(i18n_catalog.i18nc("@info:status", "Sending data to printer"), 0, False, -1)
|
||||
self._progress_message.show()
|
||||
@ -118,7 +122,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||
pass
|
||||
except IOError:
|
||||
self._progress_message.hide()
|
||||
self._error_message = Message(i18n_catalog.i18nc("@info:status", "Unable to send data printer. Is another job still active?"))
|
||||
self._error_message = Message(i18n_catalog.i18nc("@info:status", "Unable to send data to printer. Is another job still active?"))
|
||||
self._error_message.show()
|
||||
except Exception as e:
|
||||
self._progress_message.hide()
|
||||
|
Loading…
x
Reference in New Issue
Block a user