mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Handle self.build_plate = None
Contributes to CL-1250
This commit is contained in:
parent
72ce40deba
commit
5d294a7ff5
1 changed files with 7 additions and 1 deletions
|
@ -65,7 +65,13 @@ class CloudClusterPrinterStatus(BaseCloudModel):
|
|||
model.updateName(self.friendly_name)
|
||||
model.updateType(self.machine_variant)
|
||||
model.updateState(self.status if self.enabled else "disabled")
|
||||
model.updateBuildplate(self.build_plate.type)
|
||||
|
||||
# Make sure to set the build plate even though we don't use it. Since it's optional, use
|
||||
# glass as a default
|
||||
if self.build_plate:
|
||||
model.updateBuildplate(self.build_plate.type)
|
||||
else:
|
||||
model.updateBuildplate("glass")
|
||||
|
||||
for configuration, extruder_output, extruder_config in \
|
||||
zip(self.configuration, model.extruders, model.printerConfiguration.extruderConfigurations):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue