This repository was archived by the owner on May 19, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments