mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 02:45:59 +08:00
Simplify code a bit
Contributes to CL-1250
This commit is contained in:
parent
4feb53fdf4
commit
f7d86667ed
@ -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…
x
Reference in New Issue
Block a user