diff options
author | Jaime van Kessel <nallath@gmail.com> | 2017-10-02 14:18:44 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2017-10-02 14:18:44 +0300 |
commit | b5ce439c963f46f6196774c26ca0ed2102c989ef (patch) | |
tree | eaf9b4f30e68a8b58dcc2a66a00e002a1591bdb5 /cura | |
parent | 58f22568c07f7a17c932575de1ad4beb5668aa31 (diff) | |
parent | e33528538ff54502db89f067209a1752a4edc509 (diff) |
Merge branch '3.0' of github.com:Ultimaker/Cura
Diffstat (limited to 'cura')
-rwxr-xr-x | cura/Settings/MachineManager.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py index 82edebec60..520f95e293 100755 --- a/cura/Settings/MachineManager.py +++ b/cura/Settings/MachineManager.py @@ -354,11 +354,14 @@ class MachineManager(QObject): if containers: Application.getInstance().setGlobalContainerStack(containers[0]) + self.__onInstanceContainersChanged() + @pyqtSlot(str, str) def addMachine(self, name: str, definition_id: str) -> None: new_stack = CuraStackBuilder.createMachine(name, definition_id) if new_stack: - Application.getInstance().setGlobalContainerStack(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()) else: Logger.log("w", "Failed creating a new machine!") |