Merge pull request #5325 from Ultimaker/CL-1222_improve_cloud_flow_toggle

Improve "don't ask me again" checkbox
This commit is contained in:
Simon Edwards 2019-02-19 15:31:38 +01:00 committed by GitHub
commit ebc3537537
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -491,10 +491,11 @@ 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)
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