Fix various asset windows shutdown when editor is disposing during crash
This commit is contained in:
@@ -569,6 +569,10 @@ namespace FlaxEditor.Windows.Assets
|
||||
/// <inheritdoc />
|
||||
public override void OnDestroy()
|
||||
{
|
||||
if (IsDisposing)
|
||||
return;
|
||||
base.OnDestroy();
|
||||
|
||||
if (_undo != null)
|
||||
_undo.Enabled = false;
|
||||
_propertiesEditor?.Deselect();
|
||||
@@ -579,8 +583,6 @@ namespace FlaxEditor.Windows.Assets
|
||||
_saveButton = null;
|
||||
_undoButton = null;
|
||||
_redoButton = null;
|
||||
|
||||
base.OnDestroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user