Concerning the unfortunate crash...

..of the morning of the 13th day of March, in the 2018th year of our lord.
This commit is contained in:
Ian Paschal 2018-03-13 09:20:42 +01:00
parent a87db2d721
commit 69dc4fa5e0

View file

@ -875,6 +875,8 @@ class MachineManager(QObject):
@pyqtProperty("QVariantList", notify = globalContainerChanged) @pyqtProperty("QVariantList", notify = globalContainerChanged)
def currentExtruderPositions(self): def currentExtruderPositions(self):
if self._global_container_stack is None:
return []
return sorted(list(self._global_container_stack.extruders.keys())) return sorted(list(self._global_container_stack.extruders.keys()))
## Update _current_root_material_id and _current_root_material_name when ## Update _current_root_material_id and _current_root_material_name when