mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 06:15:54 +08:00
Fix: Wrong print jobs queued number
CURA-4888
This commit is contained in:
parent
4a12f7709b
commit
7b9bec2891
@ -203,11 +203,11 @@ class ClusterUM3OutputDevice(NetworkedPrinterOutputDevice):
|
|||||||
|
|
||||||
@pyqtProperty("QVariantList", notify=printJobsChanged)
|
@pyqtProperty("QVariantList", notify=printJobsChanged)
|
||||||
def queuedPrintJobs(self):
|
def queuedPrintJobs(self):
|
||||||
return [print_job for print_job in self._print_jobs if print_job.assignedPrinter is None]
|
return [print_job for print_job in self._print_jobs if print_job.assignedPrinter is None or print_job.state == "queued"]
|
||||||
|
|
||||||
@pyqtProperty("QVariantList", notify=printJobsChanged)
|
@pyqtProperty("QVariantList", notify=printJobsChanged)
|
||||||
def activePrintJobs(self):
|
def activePrintJobs(self):
|
||||||
return [print_job for print_job in self._print_jobs if print_job.assignedPrinter is not None]
|
return [print_job for print_job in self._print_jobs if print_job.assignedPrinter is not None and print_job.state != "queued"]
|
||||||
|
|
||||||
@pyqtProperty("QVariantList", notify=clusterPrintersChanged)
|
@pyqtProperty("QVariantList", notify=clusterPrintersChanged)
|
||||||
def connectedPrintersTypeCount(self):
|
def connectedPrintersTypeCount(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user