Remove popup from appearing if the content item can not re renamed.
This commit is contained in:
@@ -340,6 +340,9 @@ namespace FlaxEditor.Windows
|
|||||||
/// <returns>The created renaming popup.</returns>
|
/// <returns>The created renaming popup.</returns>
|
||||||
public void Rename(ContentItem item)
|
public void Rename(ContentItem item)
|
||||||
{
|
{
|
||||||
|
if (!item.CanRename)
|
||||||
|
return;
|
||||||
|
|
||||||
// Show element in the view
|
// Show element in the view
|
||||||
Select(item, true);
|
Select(item, true);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user