mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:58:59 +08:00
Adding a new printer now activates it again
CURA-3783
This commit is contained in:
parent
51c08d4f53
commit
27d6bebf32
@ -350,8 +350,6 @@ 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
|
|
||||||
if self._global_container_stack is None:
|
|
||||||
Application.getInstance().setGlobalContainerStack(new_stack)
|
Application.getInstance().setGlobalContainerStack(new_stack)
|
||||||
else:
|
else:
|
||||||
Logger.log("w", "Failed creating a new machine!")
|
Logger.log("w", "Failed creating a new machine!")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user