Fix showing Content Search window to properly use context window

This commit is contained in:
Wojtek Figat
2025-03-31 14:12:03 +02:00
parent f947aa3ae2
commit c00876fa94
2 changed files with 4 additions and 3 deletions

View File

@@ -92,7 +92,7 @@ namespace FlaxEditor.Modules
DockWindow window = null;
foreach (var editorWindow in Editor.Windows.Windows)
{
if (editorWindow.Visible && editorWindow.ContainsFocus)
if (editorWindow.Visible && editorWindow.ContainsFocus && editorWindow.Parent != null)
{
window = editorWindow;
break;