mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
WIP: Fix material name fetching in QML
This commit is contained in:
parent
628d031542
commit
c65192000e
1 changed files with 12 additions and 2 deletions
|
|
@ -252,8 +252,18 @@ Column
|
|||
{
|
||||
id: materialSelection
|
||||
|
||||
text: Cura.MachineManager.currentRootMaterialName[base.currentExtruderIndex]
|
||||
tooltip: Cura.MachineManager.currentRootMaterialName[base.currentExtruderIndex]
|
||||
property var currentRootMaterialName:
|
||||
{
|
||||
var materials = Cura.MachineManager.currentRootMaterialName;
|
||||
var materialName = "";
|
||||
if (base.currentExtruderIndex in materials) {
|
||||
materialName = materials[base.currentExtruderIndex];
|
||||
}
|
||||
return materialName;
|
||||
}
|
||||
|
||||
text: currentRootMaterialName
|
||||
tooltip: currentRootMaterialName
|
||||
visible: Cura.MachineManager.hasMaterials
|
||||
enabled: !extrudersList.visible || base.currentExtruderIndex > -1
|
||||
height: UM.Theme.getSize("setting_control").height
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue