Add enabled state to printer, so that it can be displayed.

This ensures that if a printer is set to "Not available", that the interface can correctly show it

CL-896
This commit is contained in:
Jaime van Kessel 2018-09-04 13:27:17 +02:00
parent 3969463758
commit dd778f0450
4 changed files with 25 additions and 1 deletions

View file

@ -595,6 +595,7 @@ class ClusterUM3OutputDevice(NetworkedPrinterOutputDevice):
printer.updateName(data["friendly_name"])
printer.updateKey(data["uuid"])
printer.updateType(data["machine_variant"])
printer.updateEnabled(data["enabled"])
# Do not store the build plate information that comes from connect if the current printer has not build plate information
if "build_plate" in data and machine_definition.getMetaDataEntry("has_variant_buildplates", False):