Fix docked asset windows not getting restored after scripts compilation

This commit is contained in:
2025-04-07 21:06:37 +03:00
parent 0ea37879e8
commit 9c5c98e8f3

View File

@@ -141,6 +141,8 @@ namespace FlaxEditor.Windows.Assets
/// <inheritdoc />
protected override void OnClose()
{
ScriptsBuilder.ScriptsReloadBegin -= OnScriptsReloadBegin;
if (_item != null)
{
// Ensure to remove linkage to the item
@@ -170,6 +172,7 @@ namespace FlaxEditor.Windows.Assets
if (!IsHidden)
{
Editor.Instance.Windows.AddToRestore(this);
Close();
}
}