Merge branch 'CURA-7745-fix-montior-page-hacks'

This commit is contained in:
Ghostkeeper 2020-10-15 09:57:34 +02:00
commit 81217880fd
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
15 changed files with 48 additions and 66 deletions

View file

@ -71,12 +71,7 @@ class ClusterPrinterStatus(BaseModel):
:param controller: - The controller of the model.
"""
# FIXME
# Note that we're using '2' here as extruder count. We have hardcoded this for now to prevent issues where the
# amount of extruders coming back from the API is actually lower (which it can be if a printer was just added
# to a cluster). This should be fixed in the future, probably also on the cluster API side.
model = PrinterOutputModel(controller, 2, firmware_version = self.firmware_version)
model = PrinterOutputModel(controller, len(self.configuration), firmware_version = self.firmware_version)
self.updateOutputModel(model)
return model