mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 14:04:03 -06:00
Fix display of unlinking button
It was not being displayed with Qt 5.15 due to the following error: MaterialsView.qml:34:5: Unable to assign QStringList to QString This is correct. And it should not just concatenate all of these material names; it should add a comma between them for human-readable display in the text label above the button. Fixes #10235.
This commit is contained in:
parent
e0e4a3f2c0
commit
33edc4a8c9
1 changed files with 3 additions and 3 deletions
|
@ -39,14 +39,14 @@ TabView
|
|||
}
|
||||
if (!base.containerId || !base.editingEnabled || !base.currentMaterialNode)
|
||||
{
|
||||
return ""
|
||||
return "";
|
||||
}
|
||||
var linkedMaterials = Cura.ContainerManager.getLinkedMaterials(base.currentMaterialNode, true);
|
||||
if (linkedMaterials.length == 0)
|
||||
{
|
||||
return ""
|
||||
return "";
|
||||
}
|
||||
return linkedMaterials;
|
||||
return linkedMaterials.join(", ");
|
||||
}
|
||||
|
||||
function getApproximateDiameter(diameter)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue