Skip to content

Commit fd83a30

Browse files
committed
fix(tool,import) : prevent the editor from being stuck forever after finishing the copy
1 parent 894beaa commit fd83a30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/Plugins/Source/Editor/EditorWindows/InstallEOSZipWindow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ protected override void RenderWindow()
239239
{
240240
if (platformImportInfo.isGettingImported)
241241
{
242-
string path = pathToImportDescDirectory + platformImportInfo.descPath;
242+
string path = Path.Combine(pathToImportDescDirectory, platformImportInfo.descPath);
243243
var packageDescription =
244244
JsonUtility.FromJsonFile<PackageDescription>(path);
245245

@@ -249,7 +249,7 @@ protected override void RenderWindow()
249249
// This should be the correct directory
250250
var projectDir = FileUtility.GetProjectPath();
251251
// TODO: Async not tested here.
252-
PackageFileUtility.CopyFilesToDirectory(projectDir, fileResults).Wait();
252+
PackageFileUtility.CopyFilesToDirectory(projectDir, fileResults);
253253
}
254254
}
255255

0 commit comments

Comments
 (0)