diff --git a/UnityLauncher/Form1.cs b/UnityLauncher/Form1.cs index 1d4d38b..6e6a229 100644 --- a/UnityLauncher/Form1.cs +++ b/UnityLauncher/Form1.cs @@ -313,7 +313,7 @@ void UpdateRecentProjectsList() } else { - Console.WriteLine("Null registry key at "+ registryPathsToCheck[i]); + Console.WriteLine("Null registry key at " + registryPathsToCheck[i]); } // parse recent project path @@ -337,7 +337,7 @@ void UpdateRecentProjectsList() // first check if whole folder exists, if not, skip if (Directory.Exists(projectPath) == false) { - Console.WriteLine("Recent project directory not found, skipping: "+ projectPath); + Console.WriteLine("Recent project directory not found, skipping: " + projectPath); continue; } @@ -598,7 +598,16 @@ private void ShowForm() void LaunchSelectedProject(bool openProject = true) { + if (gridRecent.CurrentCell == null) + { + if (gridRecent.SelectedRows.Count != 0) + { + DataGridViewRow row = gridRecent.SelectedRows[0]; + gridRecent.CurrentCell = row.Cells[0]; + } + } var selected = gridRecent.CurrentCell.RowIndex; + if (selected > -1) { var projectPath = gridRecent.Rows[selected].Cells["_path"].Value.ToString(); diff --git a/UnityLauncher/Tools.cs b/UnityLauncher/Tools.cs index 1c1076d..07ca9fd 100644 --- a/UnityLauncher/Tools.cs +++ b/UnityLauncher/Tools.cs @@ -177,7 +177,9 @@ public static string GetUnityReleaseURL(string version) if (version.Contains("f")) // archived { version = Regex.Replace(version, @"f.", "", RegexOptions.IgnoreCase); - url = "https://unity3d.com/unity/whatsnew/unity-" + version; + string padding = "unity-"; + if (version.Contains("2018.2")) padding = ""; + url = "https://unity3d.com/unity/whats-new/" + padding + version; } else if (version.Contains("p")) // patch version