@@ -36,7 +36,7 @@ public partial class MainWindow : Window
3636 static extern bool OpenIcon ( IntPtr hWnd ) ;
3737
3838 // datagrid sources
39- List < Project > projectsSource ;
39+ public static List < Project > projectsSource ;
4040 Updates [ ] updatesSource ;
4141 public static UnityInstallation [ ] unityInstallationsSource ;
4242
@@ -78,7 +78,6 @@ void Start()
7878 // get unity installations
7979 dataGridUnitys . Items . Clear ( ) ;
8080 UpdateUnityInstallationsList ( ) ;
81-
8281 HandleCommandLineLaunch ( ) ;
8382
8483 // check for duplicate instance, and activate that instead
@@ -93,10 +92,6 @@ void Start()
9392 }
9493 }
9594
96- // TEST platform combobox
97- // var test = new string[] { "1", "2", "3" };
98- // cmbPlatform.ItemsSource = test;
99-
10095 // update projects list
10196 projectsSource = GetProjects . Scan ( getGitBranch : ( bool ) chkShowGitBranchColumn . IsChecked , getArguments : ( bool ) chkShowLauncherArgumentsColumn . IsChecked , showMissingFolders : ( bool ) chkShowMissingFolderProjects . IsChecked , showTargetPlatform : ( bool ) chkShowPlatform . IsChecked ) ;
10297 gridRecent . Items . Clear ( ) ;
@@ -393,11 +388,12 @@ void UpdateUnityInstallationsList()
393388 unityInstallationsSource = GetUnityInstallations . Scan ( ) ;
394389 dataGridUnitys . ItemsSource = unityInstallationsSource ;
395390
396- // make dictionary of installed unitys, to search faster
391+ // also make dictionary of installed unitys, to search faster
397392 unityInstalledVersions . Clear ( ) ;
398393 for ( int i = 0 , len = unityInstallationsSource . Length ; i < len ; i ++ )
399394 {
400395 var version = unityInstallationsSource [ i ] . Version ;
396+ // NOTE cannot have same version id in 2 places with this
401397 if ( string . IsNullOrEmpty ( version ) == false && unityInstalledVersions . ContainsKey ( version ) == false )
402398 {
403399 unityInstalledVersions . Add ( version , unityInstallationsSource [ i ] . Path ) ;
0 commit comments