mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 14:04:03 -06:00
Prevent the deletion of materials that are still active
This commit is contained in:
parent
e376404e5c
commit
8b3290fb1e
2 changed files with 18 additions and 4 deletions
|
@ -127,7 +127,7 @@ Item
|
|||
{
|
||||
text: catalog.i18nc("@action:button", "Remove")
|
||||
iconName: "list-remove"
|
||||
enabled: base.hasCurrentItem && !base.currentItem.is_read_only && !base.isCurrentItemActivated
|
||||
enabled: base.hasCurrentItem && !base.currentItem.is_read_only && !base.isCurrentItemActivated && base.materialManager.canMaterialBeRemoved(base.currentItem.container_node)
|
||||
onClicked:
|
||||
{
|
||||
forceActiveFocus();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue