mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Fix creating abstract machines on account sync
Cura-9277 Co-authored-by: joeydelarago <joeydelarago@gmail.com>
This commit is contained in:
parent
b82f1f4a8c
commit
761bf3b8fa
2 changed files with 3 additions and 3 deletions
|
@ -6,8 +6,8 @@ from cura.Settings.GlobalStack import GlobalStack
|
|||
class AbstractMachine(GlobalStack):
|
||||
""" Behaves as a type of machine, represents multiple machines of the same type """
|
||||
|
||||
def __init__(self):
|
||||
super(self)
|
||||
def __init__(self, container_id: str):
|
||||
super().__init__(container_id)
|
||||
self.setMetaDataEntry("type", "abstract_machine")
|
||||
|
||||
def getMachinesOfType(self) -> List[GlobalStack]:
|
||||
|
|
|
@ -405,7 +405,7 @@ class CloudOutputDeviceManager:
|
|||
|
||||
self._setOutputDeviceMetadata(device, new_machine)
|
||||
|
||||
CuraStackBuilder.createAbstractMachine(new_machine)
|
||||
CuraStackBuilder.createAbstractMachine(device.name, device.printerType)
|
||||
|
||||
if activate:
|
||||
CuraApplication.getInstance().getMachineManager().setActiveMachine(new_machine.getId())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue