From 9c5c9cb76fc2edf012a68c00f98c7db0fd96a6a5 Mon Sep 17 00:00:00 2001 From: nothingTVatYT <34131388+nothingTVatYT@users.noreply.github.com> Date: Sat, 10 Feb 2024 12:48:14 +0100 Subject: [PATCH] refresh thumbnails on selection --- Source/Editor/Windows/ContentWindow.ContextMenu.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/Editor/Windows/ContentWindow.ContextMenu.cs b/Source/Editor/Windows/ContentWindow.ContextMenu.cs index dda812f84..a21ccbed7 100644 --- a/Source/Editor/Windows/ContentWindow.ContextMenu.cs +++ b/Source/Editor/Windows/ContentWindow.ContextMenu.cs @@ -79,7 +79,14 @@ namespace FlaxEditor.Windows if (item.HasDefaultThumbnail == false) { - cm.AddButton("Refresh thumbnail", item.RefreshThumbnail); + if (_view.SelectedCount > 1) + cm.AddButton("Refresh thumbnails", () => + { + foreach (var e in _view.Selection) + e.RefreshThumbnail(); + }); + else + cm.AddButton("Refresh thumbnail", item.RefreshThumbnail); } if (!isFolder)