mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-19 12:47:49 -06:00
Fix typing
CURA-6179
This commit is contained in:
parent
21c6bba1ce
commit
17fdc86e50
1 changed files with 3 additions and 1 deletions
|
@ -415,8 +415,10 @@ class MachineManager(QObject):
|
|||
definitions = CuraContainerRegistry.getInstance().findDefinitionContainers(id = definition_id)
|
||||
if definitions:
|
||||
name = definitions[0].getName()
|
||||
else:
|
||||
name = definition_id
|
||||
|
||||
new_stack = CuraStackBuilder.createMachine(name, definition_id)
|
||||
new_stack = CuraStackBuilder.createMachine(cast(str, name), definition_id)
|
||||
if new_stack:
|
||||
# Instead of setting the global container stack here, we set the active machine and so the signals are emitted
|
||||
self.setActiveMachine(new_stack.getId())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue