hide Remove option in collections editor if collection can not be resized

This commit is contained in:
xxSeys1
2025-03-25 00:34:28 +01:00
parent 2c8f2b6e92
commit 0938dd3f5d

View File

@@ -81,7 +81,7 @@ namespace FlaxEditor.CustomEditors.Editors
b.Enabled = Index + 1 < Editor.Count && !Editor._readOnly;
b = menu.AddButton("Remove", OnRemoveClicked);
b.Enabled = !Editor._readOnly;
b.Enabled = !Editor._readOnly && Editor._canResize;
}
/// <inheritdoc />