mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 20:05:56 +08:00
PostPrintjobFinished now hides messages & resets state
CL-541
This commit is contained in:
parent
f30f0a7194
commit
70cfbf0180
@ -106,8 +106,10 @@ class ClusterUM3OutputDevice(NetworkedPrinterOutputDevice):
|
|||||||
self.postFormWithParts("print_jobs/", parts, onFinished=self._onPostPrintJobFinished, onProgress=self._onUploadPrintJobProgress)
|
self.postFormWithParts("print_jobs/", parts, onFinished=self._onPostPrintJobFinished, onProgress=self._onUploadPrintJobProgress)
|
||||||
|
|
||||||
def _onPostPrintJobFinished(self, reply):
|
def _onPostPrintJobFinished(self, reply):
|
||||||
print("POST PRINTJOB DONE! YAY!", reply.readAll())
|
self._progress_message.hide()
|
||||||
pass
|
self._compressing_gcode = False
|
||||||
|
self._sending_gcode = False
|
||||||
|
Application.getInstance().showPrintMonitor.emit(False)
|
||||||
|
|
||||||
def _onUploadPrintJobProgress(self, bytes_sent, bytes_total):
|
def _onUploadPrintJobProgress(self, bytes_sent, bytes_total):
|
||||||
if bytes_total > 0:
|
if bytes_total > 0:
|
||||||
|
@ -382,7 +382,7 @@ Rectangle
|
|||||||
{
|
{
|
||||||
case "printing":
|
case "printing":
|
||||||
case "post_print":
|
case "post_print":
|
||||||
return catalog.i18nc("@label", "Finishes at: ") + OutputDevice.getTimeCompleted(printJob.time_total - printJob.time_elapsed)
|
return catalog.i18nc("@label", "Finishes at: ") + OutputDevice.getTimeCompleted(printJob.timeTotal - printJob.timeElapsed)
|
||||||
case "wait_cleanup":
|
case "wait_cleanup":
|
||||||
return catalog.i18nc("@label", "Clear build plate")
|
return catalog.i18nc("@label", "Clear build plate")
|
||||||
case "sent_to_printer":
|
case "sent_to_printer":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user