Minor tweaks
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user