mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Merge branch 'STAR-322_cloud-connection' of https://github.com/Ultimaker/Cura into STAR-322_cloud-connection
This commit is contained in:
commit
a79cfcbe47
2 changed files with 4 additions and 3 deletions
|
@ -338,8 +338,10 @@ class CloudOutputDevice(NetworkedPrinterOutputDevice):
|
||||||
for job_id in updated_job_ids:
|
for job_id in updated_job_ids:
|
||||||
self._updateUM3PrintJobOutputModel(current_jobs[job_id], remote_jobs[job_id])
|
self._updateUM3PrintJobOutputModel(current_jobs[job_id], remote_jobs[job_id])
|
||||||
|
|
||||||
# TODO: properly handle removed and updated printers
|
# We only have to update when jobs are added or removed
|
||||||
self.printJobsChanged.emit()
|
# 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:
|
def _addPrintJob(self, job: CloudClusterPrintJob) -> None:
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
# Copyright (c) 2018 Ultimaker B.V.
|
# Copyright (c) 2018 Ultimaker B.V.
|
||||||
# Cura is released under the terms of the LGPLv3 or higher.
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
import json
|
import json
|
||||||
from time import sleep
|
|
||||||
from threading import Timer
|
from threading import Timer
|
||||||
from typing import Dict, Optional
|
from typing import Dict, Optional
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue