mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -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.updateType(self.machine_variant)
|
||||
model.updateState(self.status if self.enabled else "disabled")
|
||||
|
||||
# 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")
|
||||
model.updateBuildplate(self.build_plate.type or "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