mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-22 10:21:39 -07:00
Remove "Edit" button from materials page
The "Edit" button is an unnecessary barrier. Read-only materials are still uneditable.
This commit is contained in:
parent
6479f2f938
commit
ebbe37a6cd
1 changed files with 1 additions and 12 deletions
|
|
@ -185,17 +185,6 @@ UM.ManagementPage
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
|
|
||||||
Label { text: materialProperties.name; font: UM.Theme.getFont("large"); }
|
Label { text: materialProperties.name; font: UM.Theme.getFont("large"); }
|
||||||
Button
|
|
||||||
{
|
|
||||||
id: editButton
|
|
||||||
anchors.right: parent.right;
|
|
||||||
text: catalog.i18nc("@action:button", "Edit");
|
|
||||||
iconName: "document-edit";
|
|
||||||
|
|
||||||
enabled: base.currentItem != null && !base.currentItem.readOnly
|
|
||||||
|
|
||||||
checkable: enabled
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MaterialView
|
MaterialView
|
||||||
|
|
@ -209,7 +198,7 @@ UM.ManagementPage
|
||||||
bottom: parent.bottom
|
bottom: parent.bottom
|
||||||
}
|
}
|
||||||
|
|
||||||
editingEnabled: editButton.checkable && editButton.checked;
|
editingEnabled: base.currentItem != null && !base.currentItem.readOnly
|
||||||
|
|
||||||
properties: materialProperties
|
properties: materialProperties
|
||||||
containerId: base.currentItem != null ? base.currentItem.id : ""
|
containerId: base.currentItem != null ? base.currentItem.id : ""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue