From 0938dd3f5dfc1e8508afd0658ce85c1241a80e2d Mon Sep 17 00:00:00 2001 From: xxSeys1 Date: Tue, 25 Mar 2025 00:34:28 +0100 Subject: [PATCH] hide Remove option in collections editor if collection can not be resized --- Source/Editor/CustomEditors/Editors/CollectionEditor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/CustomEditors/Editors/CollectionEditor.cs b/Source/Editor/CustomEditors/Editors/CollectionEditor.cs index f76bd4d89..1a4bcab4d 100644 --- a/Source/Editor/CustomEditors/Editors/CollectionEditor.cs +++ b/Source/Editor/CustomEditors/Editors/CollectionEditor.cs @@ -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; } ///