Adding a new printer now activates it again

CURA-3783
This commit is contained in:
Jaime van Kessel 2017-05-10 16:12:01 +02:00
parent 51c08d4f53
commit 27d6bebf32

View file

@ -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!")