mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 12:03:13 +08:00
Fixed issue with first startup
This commit is contained in:
parent
8fdc0a40ce
commit
0229fd8676
@ -490,6 +490,7 @@ class MachineManager(QObject):
|
|||||||
@pyqtProperty("QVariantList", notify = activeMaterialChanged)
|
@pyqtProperty("QVariantList", notify = activeMaterialChanged)
|
||||||
def activeMaterialNames(self):
|
def activeMaterialNames(self):
|
||||||
result = []
|
result = []
|
||||||
|
if ExtruderManager.getInstance().getActiveGlobalAndExtruderStacks() is not None:
|
||||||
for stack in ExtruderManager.getInstance().getActiveGlobalAndExtruderStacks():
|
for stack in ExtruderManager.getInstance().getActiveGlobalAndExtruderStacks():
|
||||||
material_container = stack.findContainer(type="material")
|
material_container = stack.findContainer(type="material")
|
||||||
if material_container and material_container != self._empty_material_container:
|
if material_container and material_container != self._empty_material_container:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user