Minor tweaks

This commit is contained in:
Wojtek Figat
2023-10-09 12:06:55 +02:00
parent d7e9e2ed16
commit 64d4076615
3 changed files with 9 additions and 24 deletions

View File

@@ -80,11 +80,8 @@ namespace FlaxEditor.Windows.Assets
{
if (!IsEdited)
return;
if (_asset.WaitForLoaded())
{
return;
}
if (Editor.SaveJsonAsset(_item.Path, _object))
{
@@ -137,7 +134,7 @@ namespace FlaxEditor.Windows.Assets
}
}
_presenter.Select(_object);
if (_typeText != null)
_typeText.Dispose();
var typeText = new ClickableLabel
@@ -152,7 +149,7 @@ namespace FlaxEditor.Windows.Assets
typeText.LocalY += (_toolstrip.Height - typeText.Height) * 0.5f;
typeText.RightClick = () => Clipboard.Text = Asset.DataTypeName;
_typeText = typeText;
_undo.Clear();
ClearEditedFlag();