From 134273abd96f149006cd681e2f5cde7445f3d3f2 Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Sat, 19 Aug 2023 12:47:29 -0500 Subject: [PATCH] Remove popup from appearing if the content item can not re renamed. --- Source/Editor/Windows/ContentWindow.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Editor/Windows/ContentWindow.cs b/Source/Editor/Windows/ContentWindow.cs index f993b79f9..f439c8229 100644 --- a/Source/Editor/Windows/ContentWindow.cs +++ b/Source/Editor/Windows/ContentWindow.cs @@ -340,6 +340,9 @@ namespace FlaxEditor.Windows /// The created renaming popup. public void Rename(ContentItem item) { + if (!item.CanRename) + return; + // Show element in the view Select(item, true);