mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-22 13:49:39 +08: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
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user