Skip to content

Commit

Permalink
fix crash scene backup dialog appears twice #174
Browse files Browse the repository at this point in the history
  • Loading branch information
unitycoder committed Jan 9, 2025
1 parent c8f322c commit fffd6a3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions UnityLauncherPro/Tools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,6 @@ public static Process LaunchProject(Project proj, DataGrid dataGridRef = null, b
Directory.CreateDirectory(assetsFolder);
}

// when opening project, check for crashed backup scene first
var cancelLaunch = CheckCrashBackupScene(proj.Path);
if (cancelLaunch == true)
{
return null;
}

// if its upgrade, we dont want to check current version
if (upgrade == false)
{
Expand All @@ -283,6 +276,13 @@ public static Process LaunchProject(Project proj, DataGrid dataGridRef = null, b
return null;
}

// when opening project, check for crashed backup scene first
var cancelLaunch = CheckCrashBackupScene(proj.Path);
if (cancelLaunch == true)
{
return null;
}

Process newProcess = new Process();
try
{
Expand Down

0 comments on commit fffd6a3

Please sign in to comment.