Refocus editor after restoring windows

This commit is contained in:
2024-08-01 00:27:37 +03:00
committed by Ari Vuollet
parent c4f5777536
commit f361c4bbdb

View File

@@ -1004,6 +1004,11 @@ namespace FlaxEditor.Modules
Editor.LogWarning(string.Format("Failed to restore window {0} (assembly: {1})", winData.TypeName, winData.AssemblyName));
}
}
// Restored windows stole the focus from Editor
if (_restoreWindows.Count > 0)
Editor.Instance.Windows.MainWindow.Focus();
_restoreWindows.Clear();
}