From 159fb8f5eec7e1b4d1c65b4aeb02271a44d01c82 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sun, 7 May 2023 18:22:58 +0200 Subject: [PATCH] Fix folders delete regression issue from dbd5c713445a11f8a377eefffa3467fb451af204 #1084 --- Source/Editor/Windows/ContentWindow.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Editor/Windows/ContentWindow.cs b/Source/Editor/Windows/ContentWindow.cs index 42e4c47ef..c9c1a8d21 100644 --- a/Source/Editor/Windows/ContentWindow.cs +++ b/Source/Editor/Windows/ContentWindow.cs @@ -488,7 +488,10 @@ namespace FlaxEditor.Windows /// The item to delete. public void Delete(ContentItem item) { - Delete(Editor.Instance.Windows.ContentWin.View.Selection); + var items = View.Selection; + if (items.Count == 0) + items = new List() { item }; + Delete(items); } ///