mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -06:00
Fixed issue with first startup
This commit is contained in:
parent
8fdc0a40ce
commit
0229fd8676
1 changed files with 5 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue