mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 00:07:51 -06:00
Fix possible error when a printer fails to load
CURA-1758
This commit is contained in:
parent
fa8b58844d
commit
89b601791d
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ class MachineManager(QObject):
|
|||
if active_machine_id != "":
|
||||
# An active machine was saved, so restore it.
|
||||
self.setActiveMachine(active_machine_id)
|
||||
if self._global_container_stack.getProperty("machine_extruder_count", "value") > 1:
|
||||
if self._global_container_stack and self._global_container_stack.getProperty("machine_extruder_count", "value") > 1:
|
||||
# Make sure _active_container_stack is properly initiated
|
||||
ExtruderManager.getInstance().setActiveExtruderIndex(0)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue