diff --git a/Assets/YooAsset/Samples~/Extension Sample/Editor/PackageImporter/PackageImporterWindow.cs b/Assets/YooAsset/Samples~/Extension Sample/Editor/PackageImporter/PackageImporterWindow.cs index 690a7f8..9d53e28 100644 --- a/Assets/YooAsset/Samples~/Extension Sample/Editor/PackageImporter/PackageImporterWindow.cs +++ b/Assets/YooAsset/Samples~/Extension Sample/Editor/PackageImporter/PackageImporterWindow.cs @@ -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();