@@ -377,18 +377,25 @@ void UpdateRecentProjectsList()
377
377
// get project version
378
378
string projectVersion = GetProjectVersion ( projectPath ) ;
379
379
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
+ }
382
386
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
+ }
385
393
386
394
gridRecent . Rows . Add ( projectName , projectVersion , projectPath , lastUpdated , customArgs , gitBranch ) ;
387
395
gridRecent . Rows [ gridRecent . Rows . Count - 1 ] . Cells [ 1 ] . Style . ForeColor = HaveExactVersionInstalled ( projectVersion ) ? Color . Green : Color . Red ;
388
396
}
389
397
}
390
398
}
391
-
392
399
SetStatus ( "Ready" ) ;
393
400
}
394
401
@@ -1078,6 +1085,33 @@ private void Form1_ResizeEnd(object sender, EventArgs e)
1078
1085
Properties . Settings . Default . Save ( ) ;
1079
1086
}
1080
1087
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
+ }
1081
1115
1082
1116
#endregion UI events
1083
1117
@@ -1301,18 +1335,9 @@ string ReadGitBranchInfo(string projectPath)
1301
1335
return results ;
1302
1336
}
1303
1337
1304
- private void checkShowLauncherArgumentsColumn_CheckedChanged ( object sender , EventArgs e )
1338
+ private void OpenURL ( string url )
1305
1339
{
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 ) ;
1316
1341
}
1317
1342
}
1318
1343
}
0 commit comments