mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-22 06:03:57 -06:00
Adding a new printer now activates it again
CURA-3783
This commit is contained in:
parent
51c08d4f53
commit
27d6bebf32
1 changed files with 1 additions and 3 deletions
|
@ -350,9 +350,7 @@ class MachineManager(QObject):
|
||||||
def addMachine(self, name: str, definition_id: str) -> None:
|
def addMachine(self, name: str, definition_id: str) -> None:
|
||||||
new_stack = CuraStackBuilder.createMachine(name, definition_id)
|
new_stack = CuraStackBuilder.createMachine(name, definition_id)
|
||||||
if new_stack:
|
if new_stack:
|
||||||
# only set the global container stack if there was none
|
Application.getInstance().setGlobalContainerStack(new_stack)
|
||||||
if self._global_container_stack is None:
|
|
||||||
Application.getInstance().setGlobalContainerStack(new_stack)
|
|
||||||
else:
|
else:
|
||||||
Logger.log("w", "Failed creating a new machine!")
|
Logger.log("w", "Failed creating a new machine!")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue