From d74f4f36bd42bd2134c671d24f82991bf61a51c2 Mon Sep 17 00:00:00 2001 From: Ian Paschal Date: Wed, 13 Feb 2019 11:30:31 +0100 Subject: [PATCH] Improve cloud flow checks Contributes to CL-1222 --- plugins/UM3NetworkPrinting/src/UM3OutputDevicePlugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/UM3NetworkPrinting/src/UM3OutputDevicePlugin.py b/plugins/UM3NetworkPrinting/src/UM3OutputDevicePlugin.py index c5121ecb5e..1c9d1e2938 100644 --- a/plugins/UM3NetworkPrinting/src/UM3OutputDevicePlugin.py +++ b/plugins/UM3NetworkPrinting/src/UM3OutputDevicePlugin.py @@ -419,12 +419,12 @@ class UM3OutputDevicePlugin(OutputDevicePlugin): return # Check 1B: Printer isn't already configured for cloud - if active_machine.getMetaDataEntry("cloud_flow_complete", "value") is True: + if active_machine.getMetaDataEntry("cloud_flow_complete", False): Logger.log("d", "Active machine was already configured for cloud.") return # Check 2: User did not already say "Don't ask me again" - if active_machine.getMetaDataEntry("show_cloud_message", "value") is False: + if not active_machine.getMetaDataEntry("show_cloud_message", True): Logger.log("d", "Active machine shouldn't ask about cloud anymore.") return