mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 10:47:49 -06:00
Simplify code a bit
Contributes to CL-1250
This commit is contained in:
parent
4feb53fdf4
commit
f7d86667ed
1 changed files with 1 additions and 7 deletions
|
@ -65,13 +65,7 @@ class CloudClusterPrinterStatus(BaseCloudModel):
|
||||||
model.updateName(self.friendly_name)
|
model.updateName(self.friendly_name)
|
||||||
model.updateType(self.machine_variant)
|
model.updateType(self.machine_variant)
|
||||||
model.updateState(self.status if self.enabled else "disabled")
|
model.updateState(self.status if self.enabled else "disabled")
|
||||||
|
model.updateBuildplate(self.build_plate.type or "glass")
|
||||||
# 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 \
|
for configuration, extruder_output, extruder_config in \
|
||||||
zip(self.configuration, model.extruders, model.printerConfiguration.extruderConfigurations):
|
zip(self.configuration, model.extruders, model.printerConfiguration.extruderConfigurations):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue