From 4167f81e3b0b352c1f2c07e379501bbc2761e06c Mon Sep 17 00:00:00 2001 From: Jack Ha Date: Mon, 16 Jul 2018 13:32:35 +0200 Subject: [PATCH] Fix printer missing from the list after connection; now always adds the field 'hidden' in the metadata, don't know why it worked before. CURA-5574 --- plugins/UM3NetworkPrinting/DiscoverUM3Action.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/UM3NetworkPrinting/DiscoverUM3Action.py b/plugins/UM3NetworkPrinting/DiscoverUM3Action.py index 135bc06d3a..c0a828ece9 100644 --- a/plugins/UM3NetworkPrinting/DiscoverUM3Action.py +++ b/plugins/UM3NetworkPrinting/DiscoverUM3Action.py @@ -109,7 +109,8 @@ class DiscoverUM3Action(MachineAction): CuraApplication.getInstance().getMachineManager().replaceContainersMetadata(key = "connect_group_name", value = previous_connect_group_name, new_value = group_name) else: global_container_stack.setMetaDataEntry("connect_group_name", group_name) - global_container_stack.setMetaDataEntry("hidden", False) + # Set the default value for "hidden", which is used when you have a group with multiple types of printers + global_container_stack.setMetaDataEntry("hidden", False) if self._network_plugin: # Ensure that the connection states are refreshed.