From 9c3f67a9edd97c63011ebbe87d9fe55daf6d3f1a Mon Sep 17 00:00:00 2001 From: Ian Paschal Date: Wed, 6 Mar 2019 12:26:38 +0100 Subject: [PATCH] Code style Contributes to CL-1272 --- 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 7855673fe8..7a22e11274 100644 --- a/plugins/UM3NetworkPrinting/src/UM3OutputDevicePlugin.py +++ b/plugins/UM3NetworkPrinting/src/UM3OutputDevicePlugin.py @@ -455,7 +455,7 @@ class UM3OutputDevicePlugin(OutputDevicePlugin): # Cloud flow is possible, so show the message if not self._start_cloud_flow_message: self._createCloudFlowStartMessage() - if not self._start_cloud_flow_message.visible: + if self._start_cloud_flow_message and not self._start_cloud_flow_message.visible: self._start_cloud_flow_message.show() def _onCloudPrintingConfigured(self) -> None: @@ -467,7 +467,7 @@ class UM3OutputDevicePlugin(OutputDevicePlugin): # Cloud flow is complete, so show the message if not self._cloud_flow_complete_message: self._createCloudFlowCompleteMessage() - if not self._cloud_flow_complete_message.visible: + if self._cloud_flow_complete_message and not self._cloud_flow_complete_message.visible: self._cloud_flow_complete_message.show() # Set the machine's cloud flow as complete so we don't ask the user again and again for cloud connected printers