Fixed window opening issues

修复了资源收集配置存在多个的时候,导致后续无法打开窗口的问题。
pull/13/head
hevinci 2022-05-16 15:48:23 +08:00
parent 76929cc015
commit d01dce438c
1 changed files with 10 additions and 10 deletions

View File

@ -37,6 +37,8 @@ namespace YooAsset.Editor
Undo.undoRedoPerformed -= RefreshWindow;
Undo.undoRedoPerformed += RefreshWindow;
try
{
_collectorTypeList = new List<string>()
{
$"{nameof(ECollectorType.MainAssetCollector)}",
@ -47,8 +49,6 @@ namespace YooAsset.Editor
_packRuleList = AssetBundleCollectorSettingData.GetPackRuleNames();
_filterRuleList = AssetBundleCollectorSettingData.GetFilterRuleNames();
try
{
VisualElement root = this.rootVisualElement;
// 加载布局文件