Merge pull request #342 from miuleung/dev

Fix File Dialog Cancel Error Log
pull/353/head
何冠峰 2024-08-15 14:34:37 +08:00 committed by GitHub
commit 3046bbe697
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

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