From d674494cdba9332fce4068c51e07338936d34ab8 Mon Sep 17 00:00:00 2001 From: ChrisTerBeke Date: Fri, 23 Aug 2019 10:10:44 +0200 Subject: [PATCH] Don't look at available configurations when no slots are available --- plugins/ThingiBrowser | 1 - .../UM3NetworkPrinting/src/Models/Http/ClusterPrinterStatus.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 120000 plugins/ThingiBrowser diff --git a/plugins/ThingiBrowser b/plugins/ThingiBrowser deleted file mode 120000 index 8126b65fd5..0000000000 --- a/plugins/ThingiBrowser +++ /dev/null @@ -1 +0,0 @@ -/Users/chris/Code/ChrisTerBeke/ThingiBrowser \ No newline at end of file diff --git a/plugins/UM3NetworkPrinting/src/Models/Http/ClusterPrinterStatus.py b/plugins/UM3NetworkPrinting/src/Models/Http/ClusterPrinterStatus.py index 6e971e2bd3..323ecf5c75 100644 --- a/plugins/UM3NetworkPrinting/src/Models/Http/ClusterPrinterStatus.py +++ b/plugins/UM3NetworkPrinting/src/Models/Http/ClusterPrinterStatus.py @@ -80,7 +80,7 @@ class ClusterPrinterStatus(BaseModel): model.setCameraUrl(QUrl("http://{}:8080/?action=stream".format(self.ip_address))) # Set the possible configurations based on whether a Material Station is present or not. - if self.material_station is not None: + if self.material_station is not None and len(self.material_station.material_slots): self._updateAvailableConfigurations(model) if self.configuration is not None: self._updateActiveConfiguration(model)