Просмотр исходного кода

Add some more states to check if print_job is active

Jaime van Kessel 7 лет назад
Родитель
Сommit
522e297711
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      plugins/UM3NetworkPrinting/ClusterUM3OutputDevice.py

+ 2 - 2
plugins/UM3NetworkPrinting/ClusterUM3OutputDevice.py

@@ -301,8 +301,8 @@ class ClusterUM3OutputDevice(NetworkedPrinterOutputDevice):
             self._updatePrintJob(print_job, print_job_data)
 
             if print_job.state != "queued":  # Print job should be assigned to a printer.
-                if print_job.state == "failed":
-                    # Print job was failed, so don't attach it to a printer.
+                if print_job.state in ["failed", "finished", "aborted"]:
+                    # Print job was already completed, so don't attach it to a printer.
                     printer = None
                 else:
                     printer = self._getPrinterByKey(print_job_data["printer_uuid"])