mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:05:53 +08:00
Fix QML errors when extruder list is temporarily 0
Found during work on CURA-6793.
This commit is contained in:
parent
ab4fade017
commit
d3a3be832f
@ -13,8 +13,8 @@ Menu
|
|||||||
title: catalog.i18nc("@label:category menu label", "Material")
|
title: catalog.i18nc("@label:category menu label", "Material")
|
||||||
|
|
||||||
property int extruderIndex: 0
|
property int extruderIndex: 0
|
||||||
property string currentRootMaterialId: Cura.MachineManager.currentRootMaterialId[extruderIndex]
|
property var currentRootMaterialId: Cura.MachineManager.currentRootMaterialId[extruderIndex]
|
||||||
property string activeMaterialId: Cura.MachineManager.activeMachine.extruderList[extruderIndex].material.id
|
property string activeMaterialId: Cura.MachineManager.activeMachine.extruderList[extruderIndex] ? Cura.MachineManager.activeMachine.extruderList[extruderIndex].material.id : ""
|
||||||
property bool updateModels: true
|
property bool updateModels: true
|
||||||
Cura.FavoriteMaterialsModel
|
Cura.FavoriteMaterialsModel
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user