@@ -262,9 +262,10 @@ bool ScanUnityInstallations()
262262 if ( unityList . ContainsKey ( unityVersion ) == false )
263263 {
264264 unityList . Add ( unityVersion , unityExe ) ;
265- gridUnityList . Rows . Add ( unityVersion , unityExe ) ;
265+ var dataFolder = Path . Combine ( directories [ i ] , "Editor" , "Data" ) ;
266+ DateTime ? installDate = GetLastModifiedTime ( dataFolder ) ;
267+ gridUnityList . Rows . Add ( unityVersion , unityExe , installDate ) ;
266268 }
267- //Console.WriteLine(unityVersion);
268269 } // have unity.exe
269270 } // have uninstaller.exe
270271 } // got folders
@@ -401,7 +402,7 @@ void UpdateRecentProjectsList()
401402
402403 DateTime ? GetLastModifiedTime ( string path )
403404 {
404- if ( File . Exists ( path ) == true )
405+ if ( File . Exists ( path ) == true || Directory . Exists ( path ) == true )
405406 {
406407 DateTime modification = File . GetLastWriteTime ( path ) ;
407408 //return modification.ToShortDateString();
@@ -425,11 +426,14 @@ void LaunchProject(string projectPath, string version, bool openProject = true)
425426 Directory . CreateDirectory ( assetsFolder ) ;
426427 }
427428
428- // check for crashed backup scene first
429- var cancelLaunch = CheckCrashBackupScene ( projectPath ) ;
430- if ( cancelLaunch == true )
429+ // when opening project, check for crashed backup scene first
430+ if ( openProject == true )
431431 {
432- return ;
432+ var cancelLaunch = CheckCrashBackupScene ( projectPath ) ;
433+ if ( cancelLaunch == true )
434+ {
435+ return ;
436+ }
433437 }
434438
435439 if ( HaveExactVersionInstalled ( version ) == true )
@@ -1272,7 +1276,6 @@ private void gridRecent_CellEndEdit(object sender, DataGridViewCellEventArgs e)
12721276 string path = GetSelectedRowData ( "_path" ) ;
12731277 if ( string . IsNullOrEmpty ( path ) ) return ;
12741278
1275-
12761279 string arguments = GetSelectedRowData ( "_launchArguments" ) ;
12771280
12781281 // check folder first
@@ -1295,7 +1298,10 @@ private void gridRecent_CellEndEdit(object sender, DataGridViewCellEventArgs e)
12951298 {
12961299 SetStatus ( "File error: " + exception . Message ) ;
12971300 }
1298- // TODO: keep current row selected
1301+
1302+ // select the same row again (dont move to next), doesnt work here
1303+ // var previousRow = gridRecent.CurrentCell.RowIndex;
1304+ // gridRecent.Rows[previousRow].Selected = true;
12991305 }
13001306
13011307 // returns currently selected rows path string
0 commit comments