Fix error in case of opening multiple folders with Enter in Content Window

This commit is contained in:
Wojtek Figat
2021-10-07 10:28:31 +02:00
parent fd8f7c76a2
commit 690e3ee3ca

View File

@@ -632,7 +632,7 @@ namespace FlaxEditor.Content.GUI
// Open // Open
if (key == KeyboardKeys.Return && _selection.Count != 0) if (key == KeyboardKeys.Return && _selection.Count != 0)
{ {
foreach (var e in _selection) foreach (var e in _selection.ToArray())
OnOpen?.Invoke(e); OnOpen?.Invoke(e);
return true; return true;
} }