mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 00:58:58 +08:00
Use setActiveMachine() in project loading
This commit is contained in:
parent
d471e34e48
commit
12c51f4066
@ -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…
x
Reference in New Issue
Block a user