mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Show message while aborting
CURA-1990
This commit is contained in:
parent
c4850a6ff2
commit
31861d82dc
1 changed files with 3 additions and 0 deletions
|
@ -477,9 +477,11 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||
if self._print_finished:
|
||||
state = "printing"
|
||||
else:
|
||||
self.setErrorText(i18n_catalog.i18nc("@label:MonitorStatus", "Aborting print..."))
|
||||
state = "error"
|
||||
if state == "wait_cleanup" and not self._print_finished:
|
||||
# Keep showing the "aborted" error state until after the buildplate has been cleaned
|
||||
self.setErrorText(i18n_catalog.i18nc("@label:MonitorStatus", "Print aborted. Please check the printer"))
|
||||
state = "error"
|
||||
|
||||
self._updateJobState(state)
|
||||
|
@ -489,6 +491,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
|||
elif status_code == 404:
|
||||
self.setProgress(0) # No print job found, so there can't be progress or other data.
|
||||
self._updateJobState("")
|
||||
self.setErrorText("")
|
||||
self.setTimeElapsed(0)
|
||||
self.setTimeTotal(0)
|
||||
self.setJobName("")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue