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

Commit 4b0fee7

Browse files
committedJan 2, 2019
fixed #73, fixed #74
1 parent 48c3075 commit 4b0fee7

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed
 

‎UnityLauncher/Form1.cs

+11-2
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ void UpdateRecentProjectsList()
313313
}
314314
else
315315
{
316-
Console.WriteLine("Null registry key at "+ registryPathsToCheck[i]);
316+
Console.WriteLine("Null registry key at " + registryPathsToCheck[i]);
317317
}
318318

319319
// parse recent project path
@@ -337,7 +337,7 @@ void UpdateRecentProjectsList()
337337
// first check if whole folder exists, if not, skip
338338
if (Directory.Exists(projectPath) == false)
339339
{
340-
Console.WriteLine("Recent project directory not found, skipping: "+ projectPath);
340+
Console.WriteLine("Recent project directory not found, skipping: " + projectPath);
341341
continue;
342342
}
343343

@@ -598,7 +598,16 @@ private void ShowForm()
598598

599599
void LaunchSelectedProject(bool openProject = true)
600600
{
601+
if (gridRecent.CurrentCell == null)
602+
{
603+
if (gridRecent.SelectedRows.Count != 0)
604+
{
605+
DataGridViewRow row = gridRecent.SelectedRows[0];
606+
gridRecent.CurrentCell = row.Cells[0];
607+
}
608+
}
601609
var selected = gridRecent.CurrentCell.RowIndex;
610+
602611
if (selected > -1)
603612
{
604613
var projectPath = gridRecent.Rows[selected].Cells["_path"].Value.ToString();

‎UnityLauncher/Tools.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@ public static string GetUnityReleaseURL(string version)
177177
if (version.Contains("f")) // archived
178178
{
179179
version = Regex.Replace(version, @"f.", "", RegexOptions.IgnoreCase);
180-
url = "https://unity3d.com/unity/whatsnew/unity-" + version;
180+
string padding = "unity-";
181+
if (version.Contains("2018.2")) padding = "";
182+
url = "https://unity3d.com/unity/whats-new/" + padding + version;
181183
}
182184
else
183185
if (version.Contains("p")) // patch version

0 commit comments

Comments
 (0)
This repository has been archived.