Code style fix

This commit is contained in:
Chandler Cox
2023-11-24 07:50:00 -06:00
parent 94f1dff497
commit 53aae90d45
2 changed files with 6 additions and 6 deletions

View File

@@ -27,12 +27,12 @@ namespace FlaxEditor.Content
/// <summary>
/// Whether this node can be deleted.
/// </summary>
protected virtual bool _canDelete => true;
protected virtual bool CanDelete => true;
/// <summary>
/// Whether this node can be duplicated.
/// </summary>
protected virtual bool _canDuplicate => true;
protected virtual bool CanDuplicate => true;
/// <summary>
/// Gets the content folder item.
@@ -311,7 +311,7 @@ namespace FlaxEditor.Content
StartRenaming();
return true;
case KeyboardKeys.Delete:
if (Folder.Exists && _canDelete)
if (Folder.Exists && CanDelete)
Editor.Instance.Windows.ContentWin.Delete(Folder);
return true;
}
@@ -320,7 +320,7 @@ namespace FlaxEditor.Content
switch (key)
{
case KeyboardKeys.D:
if (Folder.Exists && _canDuplicate)
if (Folder.Exists && CanDuplicate)
Editor.Instance.Windows.ContentWin.Duplicate(Folder);
return true;
}

View File

@@ -13,10 +13,10 @@ namespace FlaxEditor.Content
private FileSystemWatcher _watcher;
/// <inheritdoc />
protected override bool _canDelete => false;
protected override bool CanDelete => false;
/// <inheritdoc />
protected override bool _canDuplicate => false;
protected override bool CanDuplicate => false;
/// <summary>
/// Initializes a new instance of the <see cref="MainContentTreeNode"/> class.