mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
PostPrintjobFinished now hides messages & resets state
CL-541
This commit is contained in:
parent
f30f0a7194
commit
70cfbf0180
2 changed files with 5 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue