mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 01:39:03 +08:00
Finish adding cloud flow checks
Contributes to CL-1222
This commit is contained in:
parent
b29f3d3bd0
commit
70c384bd4e
@ -389,9 +389,18 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
|
||||
|
||||
## Check if the prerequsites are in place to start the cloud flow
|
||||
def checkCloudFlowIsPossible(self):
|
||||
Logger.log("d", "Checking if cloud connection is possible...")
|
||||
active_machine = self._application.getMachineManager().activeMachine
|
||||
|
||||
# TODO: Skip if already using cloud connection
|
||||
if active_machine:
|
||||
# Skip if already complete
|
||||
# if active_machine.getMetaDataEntry("cloud_flow_complete", "value") is not None:
|
||||
# return
|
||||
|
||||
# # Skip if user said don't remind me
|
||||
# if active_machine.getMetaDataEntry("show_cloud_message", "value") is False:
|
||||
# return
|
||||
|
||||
Logger.log("d", "Checking if cloud connection is possible...")
|
||||
|
||||
# Check #1: User is logged in with an Ultimaker account
|
||||
if not self._account.isLoggedIn:
|
||||
@ -412,7 +421,7 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
|
||||
# return
|
||||
# TODO: Un-comment out, only by-passed for development purposes
|
||||
|
||||
Logger.log("d", "Cloud flow is ready to go!")
|
||||
Logger.log("d", "Cloud flow is possible!")
|
||||
self.cloudFlowIsPossible.emit()
|
||||
|
||||
def _onCloudFlowPossible(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user