mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Fix checking for cases where machine creation failed
This commit is contained in:
parent
c3d846440d
commit
5f31551184
2 changed files with 6 additions and 0 deletions
|
@ -144,6 +144,9 @@ class CloudOutputDeviceManager:
|
|||
# Create a new machine and activate it.
|
||||
# We do not use use MachineManager.addMachine here because we need to set the cluster ID before activating it.
|
||||
new_machine = CuraStackBuilder.createMachine(device.name, device.printerType)
|
||||
if not new_machine:
|
||||
Logger.log("e", "Failed creating a new machine")
|
||||
return
|
||||
new_machine.setMetaDataEntry(self.META_CLUSTER_ID, device.key)
|
||||
CuraApplication.getInstance().getMachineManager().setActiveMachine(new_machine.getId())
|
||||
self._connectToOutputDevice(device, new_machine)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue