Skip to content

Commit fffd6a3

Browse files
committed
fix crash scene backup dialog appears twice #174
1 parent c8f322c commit fffd6a3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

UnityLauncherPro/Tools.cs

+7-7
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,6 @@ public static Process LaunchProject(Project proj, DataGrid dataGridRef = null, b
256256
Directory.CreateDirectory(assetsFolder);
257257
}
258258

259-
// when opening project, check for crashed backup scene first
260-
var cancelLaunch = CheckCrashBackupScene(proj.Path);
261-
if (cancelLaunch == true)
262-
{
263-
return null;
264-
}
265-
266259
// if its upgrade, we dont want to check current version
267260
if (upgrade == false)
268261
{
@@ -283,6 +276,13 @@ public static Process LaunchProject(Project proj, DataGrid dataGridRef = null, b
283276
return null;
284277
}
285278

279+
// when opening project, check for crashed backup scene first
280+
var cancelLaunch = CheckCrashBackupScene(proj.Path);
281+
if (cancelLaunch == true)
282+
{
283+
return null;
284+
}
285+
286286
Process newProcess = new Process();
287287
try
288288
{

0 commit comments

Comments
 (0)