Add recycle bin to script deleting.

This commit is contained in:
Chandler Cox
2026-03-06 19:39:49 -06:00
parent 075727ab53
commit 83bbb4f6ba
4 changed files with 38 additions and 7 deletions

View File

@@ -754,6 +754,10 @@ namespace FlaxEditor.Modules
// Delete asset by using content pool
FlaxEngine.Content.DeleteAsset(path);
}
else if (item is ScriptItem)
{
FlaxEngine.Content.DeleteScript(path);
}
else if (deletedByUser)
{
// Delete file
@@ -901,7 +905,7 @@ namespace FlaxEditor.Modules
{
// Item doesn't exist anymore
Editor.Log(string.Format($"Content item \'{child.Path}\' has been removed"));
Delete(child, false);
Delete(child);
i--;
}
else if (canHaveAssets && child is AssetItem childAsset)