From f7d86667ed81ffd252889802516ed26ad0e220f1 Mon Sep 17 00:00:00 2001 From: Ian Paschal Date: Fri, 15 Feb 2019 10:14:14 +0100 Subject: [PATCH] Simplify code a bit Contributes to CL-1250 --- .../src/Cloud/Models/CloudClusterPrinterStatus.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/plugins/UM3NetworkPrinting/src/Cloud/Models/CloudClusterPrinterStatus.py b/plugins/UM3NetworkPrinting/src/Cloud/Models/CloudClusterPrinterStatus.py index 96310b8229..6193fd0c26 100644 --- a/plugins/UM3NetworkPrinting/src/Cloud/Models/CloudClusterPrinterStatus.py +++ b/plugins/UM3NetworkPrinting/src/Cloud/Models/CloudClusterPrinterStatus.py @@ -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):