Merge branch 'delete_content_fix' of https://github.com/GoaLitiuM/FlaxEngine into GoaLitiuM-delete_content_fix

This commit is contained in:
Wojtek Figat
2023-10-14 16:34:22 +02:00

View File

@@ -631,7 +631,7 @@ namespace FlaxEditor.Windows
// Sort items to remove files first, then folders
var toDelete = new List<ContentItem>(items);
toDelete.Sort((a, b) => a.IsFolder ? 1 : -1);
toDelete.Sort((a, b) => a.IsFolder ? 1 : b.IsFolder ? -1 : a.Compare(b));
string msg = toDelete.Count == 1
? string.Format("Are you sure to delete \'{0}\'?\nThis action cannot be undone. Files will be deleted permanently.", items[0].Path)