Add refreshing actively opened Layers And Tags asset editor when adding tags from popup
#885
This commit is contained in:
@@ -257,6 +257,9 @@ namespace FlaxEditor.CustomEditors.Editors
|
||||
var settingsObj = (LayersAndTagsSettings)settingsAsset.Instance;
|
||||
settingsObj.Tags.Add(tagName);
|
||||
settingsAsset.SetInstance(settingsObj);
|
||||
|
||||
// Reload editor window to reflect new tag
|
||||
assetWindow?.RefreshAsset();
|
||||
}
|
||||
};
|
||||
dialog.Closed += popup =>
|
||||
|
||||
@@ -308,6 +308,14 @@ namespace FlaxEditor.Windows.Assets
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Drops any loaded asset data and refreshes the UI state.
|
||||
/// </summary>
|
||||
public void RefreshAsset()
|
||||
{
|
||||
_isWaitingForLoaded = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reloads the asset (window will receive <see cref="OnAssetLoaded"/> or <see cref="OnAssetLoadFailed"/> events).
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user