Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 19, 2021. It is now read-only.

Commit 4b0fee7

Browse files
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‎

Lines changed: 11 additions & 2 deletions
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‎

Lines changed: 3 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /