Skip to content
This repository has been archived by the owner on May 19, 2021. It is now read-only.

Commit

Permalink
fixed #73, fixed #74
Browse files Browse the repository at this point in the history
  • Loading branch information
unitycoder committed Jan 2, 2019
1 parent 48c3075 commit 4b0fee7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
13 changes: 11 additions & 2 deletions UnityLauncher/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
}

Expand Down Expand Up @@ -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();
Expand Down
4 changes: 3 additions & 1 deletion UnityLauncher/Tools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b0fee7

Please sign in to comment.