From 05b5dfa05fea1e5deb12f3b630ad42856257e264 Mon Sep 17 00:00:00 2001 From: Ian Paschal Date: Tue, 19 Feb 2019 10:13:05 +0100 Subject: [PATCH] Improve "don't ask me again" checkbox Contributes to CL-1222 --- plugins/UM3NetworkPrinting/src/UM3OutputDevicePlugin.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/UM3NetworkPrinting/src/UM3OutputDevicePlugin.py b/plugins/UM3NetworkPrinting/src/UM3OutputDevicePlugin.py index e57cd15960..942b417b10 100644 --- a/plugins/UM3NetworkPrinting/src/UM3OutputDevicePlugin.py +++ b/plugins/UM3NetworkPrinting/src/UM3OutputDevicePlugin.py @@ -491,11 +491,12 @@ class UM3OutputDevicePlugin(OutputDevicePlugin): active_machine.setMetaDataEntry("do_not_show_cloud_message", True) return - def _onDontAskMeAgain(self, messageId: str) -> None: + def _onDontAskMeAgain(self, checked: bool) -> None: active_machine = self._application.getMachineManager().activeMachine # type: Optional["GlobalStack"] if active_machine: - active_machine.setMetaDataEntry("do_not_show_cloud_message", True) - Logger.log("d", "Will not ask the user again to cloud connect for current printer.") + active_machine.setMetaDataEntry("do_not_show_cloud_message", checked) + if checked: + Logger.log("d", "Will not ask the user again to cloud connect for current printer.") return def _onCloudFlowStarted(self, messageId: str, actionId: str) -> None: