mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 15:37:27 -06:00
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.
This commit is contained in:
parent
4c4de2cf1a
commit
3ea9c3856c
1 changed files with 1 additions and 1 deletions
|
@ -1096,7 +1096,7 @@ class MachineManager(QObject):
|
||||||
machine_stacks = ContainerRegistry.getInstance().findContainerStacks(type = "machine")
|
machine_stacks = ContainerRegistry.getInstance().findContainerStacks(type = "machine")
|
||||||
other_machine_stacks = [s for s in machine_stacks if s.getId() != machine_id]
|
other_machine_stacks = [s for s in machine_stacks if s.getId() != machine_id]
|
||||||
if other_machine_stacks:
|
if other_machine_stacks:
|
||||||
Application.getInstance().setGlobalContainerStack(other_machine_stacks[0])
|
self.setActiveMachine(other_machine_stacks[0].getId())
|
||||||
|
|
||||||
ExtruderManager.getInstance().removeMachineExtruders(machine_id)
|
ExtruderManager.getInstance().removeMachineExtruders(machine_id)
|
||||||
containers = ContainerRegistry.getInstance().findInstanceContainers(type = "user", machine = machine_id)
|
containers = ContainerRegistry.getInstance().findInstanceContainers(type = "user", machine = machine_id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue