mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Use setActiveMachine() in project loading
This commit is contained in:
parent
d471e34e48
commit
12c51f4066
1 changed files with 2 additions and 1 deletions
|
@ -1057,7 +1057,8 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
CuraApplication.getInstance().getMachineManager().activeQualityChanged.emit()
|
CuraApplication.getInstance().getMachineManager().activeQualityChanged.emit()
|
||||||
|
|
||||||
# Actually change the active machine.
|
# Actually change the active machine.
|
||||||
Application.getInstance().setGlobalContainerStack(global_stack)
|
machine_manager = Application.getInstance().getMachineManager()
|
||||||
|
machine_manager.setActiveMachine(global_stack.getId())
|
||||||
|
|
||||||
# Notify everything/one that is to notify about changes.
|
# Notify everything/one that is to notify about changes.
|
||||||
global_stack.containersChanged.emit(global_stack.getTop())
|
global_stack.containersChanged.emit(global_stack.getTop())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue