mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 23:05:57 +08: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
@ -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…
x
Reference in New Issue
Block a user