@@ -377,18 +377,25 @@ void UpdateRecentProjectsList()
377377 // get project version
378378 string projectVersion = GetProjectVersion ( projectPath ) ;
379379
380- // get custom launch arguments,TODO if enabled
381- string customArgs = ReadCustomLaunchArguments ( projectPath ) ;
380+ // get custom launch arguments, only if column in enabled
381+ string customArgs = "" ;
382+ if ( chkShowLauncherArgumentsColumn . Checked == true )
383+ {
384+ customArgs = ReadCustomLaunchArguments ( projectPath ) ;
385+ }
382386
383- // get git branchinfo,TODO if enabled
384- string gitBranch = ReadGitBranchInfo ( projectPath ) ;
387+ // get git branchinfo, only if column in enabled
388+ string gitBranch = "" ;
389+ if ( chkShowGitBranchColumn . Checked == true )
390+ {
391+ gitBranch = ReadGitBranchInfo ( projectPath ) ;
392+ }
385393
386394 gridRecent . Rows . Add ( projectName , projectVersion , projectPath , lastUpdated , customArgs , gitBranch ) ;
387395 gridRecent . Rows [ gridRecent . Rows . Count - 1 ] . Cells [ 1 ] . Style . ForeColor = HaveExactVersionInstalled ( projectVersion ) ? Color . Green : Color . Red ;
388396 }
389397 }
390398 }
391-
392399 SetStatus ( "Ready" ) ;
393400 }
394401
@@ -1078,6 +1085,33 @@ private void Form1_ResizeEnd(object sender, EventArgs e)
10781085 Properties . Settings . Default . Save ( ) ;
10791086 }
10801087
1088+ private void checkShowLauncherArgumentsColumn_CheckedChanged ( object sender , EventArgs e )
1089+ {
1090+ Properties . Settings . Default . showArgumentsColumn = chkShowLauncherArgumentsColumn . Checked ;
1091+ Properties . Settings . Default . Save ( ) ;
1092+ gridRecent . Columns [ "_launchArguments" ] . Visible = chkShowLauncherArgumentsColumn . Checked ;
1093+ // reload list data, if enabled (otherwise missing data)
1094+ if ( chkShowLauncherArgumentsColumn . Checked == true ) UpdateRecentProjectsList ( ) ;
1095+ }
1096+
1097+ private void checkShowGitBranchColumn_CheckedChanged ( object sender , EventArgs e )
1098+ {
1099+ Properties . Settings . Default . showGitBranchColumn = chkShowGitBranchColumn . Checked ;
1100+ Properties . Settings . Default . Save ( ) ;
1101+ gridRecent . Columns [ "_gitBranch" ] . Visible = chkShowGitBranchColumn . Checked ;
1102+ // reload list data, if enabled (otherwise missing data)
1103+ if ( chkShowGitBranchColumn . Checked == true ) UpdateRecentProjectsList ( ) ;
1104+ }
1105+
1106+ private void linkArgumentsDocs_LinkClicked ( object sender , LinkLabelLinkClickedEventArgs e )
1107+ {
1108+ OpenURL ( "https://docs.unity3d.com/Manual/CommandLineArguments.html" ) ;
1109+ }
1110+
1111+ private void linkProjectGithub_LinkClicked ( object sender , LinkLabelLinkClickedEventArgs e )
1112+ {
1113+ OpenURL ( "https://github.com/unitycoder/UnityLauncher/releases" ) ;
1114+ }
10811115
10821116 #endregion UI events
10831117
@@ -1301,18 +1335,9 @@ string ReadGitBranchInfo(string projectPath)
13011335 return results ;
13021336 }
13031337
1304- private void checkShowLauncherArgumentsColumn_CheckedChanged ( object sender , EventArgs e )
1338+ private void OpenURL ( string url )
13051339 {
1306- Properties . Settings . Default . showArgumentsColumn = chkShowLauncherArgumentsColumn . Checked ;
1307- Properties . Settings . Default . Save ( ) ;
1308- gridRecent . Columns [ "_launchArguments" ] . Visible = chkShowLauncherArgumentsColumn . Checked ;
1309- }
1310-
1311- private void checkShowGitBranchColumn_CheckedChanged ( object sender , EventArgs e )
1312- {
1313- Properties . Settings . Default . showGitBranchColumn = chkShowGitBranchColumn . Checked ;
1314- Properties . Settings . Default . Save ( ) ;
1315- gridRecent . Columns [ "_gitBranch" ] . Visible = chkShowGitBranchColumn . Checked ;
1340+ Process . Start ( url ) ;
13161341 }
13171342 }
13181343}
0 commit comments