Fix File Dialog Cancel Error Log

选择文件时取消报错修复
This commit is contained in:
miuleung
2024-08-13 16:05:20 +08:00
parent ae454b72dc
commit c156b5c0a7

View File

@@ -29,8 +29,7 @@ namespace YooAsset.Editor
if (GUILayout.Button("选择补丁包", GUILayout.MaxWidth(150)))
{
string resultPath = EditorUtility.OpenFilePanel("Find", "Assets/", "bytes");
if (string.IsNullOrEmpty(resultPath))
return;
if (!string.IsNullOrEmpty(resultPath))
_manifestPath = resultPath;
}
EditorGUILayout.LabelField(_manifestPath);