mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06: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
|
||||
|
||||
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
|
||||
|
@ -209,7 +198,7 @@ UM.ManagementPage
|
|||
bottom: parent.bottom
|
||||
}
|
||||
|
||||
editingEnabled: editButton.checkable && editButton.checked;
|
||||
editingEnabled: base.currentItem != null && !base.currentItem.readOnly
|
||||
|
||||
properties: materialProperties
|
||||
containerId: base.currentItem != null ? base.currentItem.id : ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue