Code style fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user