mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Be more efficient in updating the print jobs
This commit is contained in:
parent
97535ffa24
commit
5d77209cfb
2 changed files with 4 additions and 3 deletions
|
@ -338,8 +338,10 @@ class CloudOutputDevice(NetworkedPrinterOutputDevice):
|
|||
for job_id in updated_job_ids:
|
||||
self._updateUM3PrintJobOutputModel(current_jobs[job_id], remote_jobs[job_id])
|
||||
|
||||
# TODO: properly handle removed and updated printers
|
||||
self.printJobsChanged.emit()
|
||||
# We only have to update when jobs are added or removed
|
||||
# updated jobs push their changes via their outputmodel
|
||||
if len(removed_job_ids) > 0 or len(new_job_ids) > 0:
|
||||
self.printJobsChanged.emit()
|
||||
|
||||
def _addPrintJob(self, job: CloudClusterPrintJob) -> None:
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue