Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cura
diff options
context:
space:
mode:
authorDiego Prado Gesto <d.pradogesto@ultimaker.com>2017-10-13 14:06:48 +0300
committerDiego Prado Gesto <d.pradogesto@ultimaker.com>2017-10-13 14:06:48 +0300
commit3ea9c3856c20d15d644233b704d5911823454ded (patch)
treea7750f8c18061cf22b8da66e25083fb0d7a00173 /cura
parent4c4de2cf1ad8a9cfa97420276f3895c11be99c85 (diff)
CURA-4450 Updating UI after removing printer
When removing a printer, the new one was activated but not signals were emitted so the UI didn't update correctly. Now the printer is added and signals are emitted.
Diffstat (limited to 'cura')
-rwxr-xr-xcura/Settings/MachineManager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py
index e0e81fba1b..937d59fa07 100755
--- a/cura/Settings/MachineManager.py
+++ b/cura/Settings/MachineManager.py
@@ -1096,7 +1096,7 @@ class MachineManager(QObject):
machine_stacks = ContainerRegistry.getInstance().findContainerStacks(type = "machine")
other_machine_stacks = [s for s in machine_stacks if s.getId() != machine_id]
if other_machine_stacks:
- Application.getInstance().setGlobalContainerStack(other_machine_stacks[0])
+ self.setActiveMachine(other_machine_stacks[0].getId())
ExtruderManager.getInstance().removeMachineExtruders(machine_id)
containers = ContainerRegistry.getInstance().findInstanceContainers(type = "user", machine = machine_id)