@@ -36,7 +36,7 @@ public partial class MainWindow : Window
36
36
static extern bool OpenIcon ( IntPtr hWnd ) ;
37
37
38
38
// datagrid sources
39
- List < Project > projectsSource ;
39
+ public static List < Project > projectsSource ;
40
40
Updates [ ] updatesSource ;
41
41
public static UnityInstallation [ ] unityInstallationsSource ;
42
42
@@ -78,7 +78,6 @@ void Start()
78
78
// get unity installations
79
79
dataGridUnitys . Items . Clear ( ) ;
80
80
UpdateUnityInstallationsList ( ) ;
81
-
82
81
HandleCommandLineLaunch ( ) ;
83
82
84
83
// check for duplicate instance, and activate that instead
@@ -93,10 +92,6 @@ void Start()
93
92
}
94
93
}
95
94
96
- // TEST platform combobox
97
- // var test = new string[] { "1", "2", "3" };
98
- // cmbPlatform.ItemsSource = test;
99
-
100
95
// update projects list
101
96
projectsSource = GetProjects . Scan ( getGitBranch : ( bool ) chkShowGitBranchColumn . IsChecked , getArguments : ( bool ) chkShowLauncherArgumentsColumn . IsChecked , showMissingFolders : ( bool ) chkShowMissingFolderProjects . IsChecked , showTargetPlatform : ( bool ) chkShowPlatform . IsChecked ) ;
102
97
gridRecent . Items . Clear ( ) ;
@@ -393,11 +388,12 @@ void UpdateUnityInstallationsList()
393
388
unityInstallationsSource = GetUnityInstallations . Scan ( ) ;
394
389
dataGridUnitys . ItemsSource = unityInstallationsSource ;
395
390
396
- // make dictionary of installed unitys, to search faster
391
+ // also make dictionary of installed unitys, to search faster
397
392
unityInstalledVersions . Clear ( ) ;
398
393
for ( int i = 0 , len = unityInstallationsSource . Length ; i < len ; i ++ )
399
394
{
400
395
var version = unityInstallationsSource [ i ] . Version ;
396
+ // NOTE cannot have same version id in 2 places with this
401
397
if ( string . IsNullOrEmpty ( version ) == false && unityInstalledVersions . ContainsKey ( version ) == false )
402
398
{
403
399
unityInstalledVersions . Add ( version , unityInstallationsSource [ i ] . Path ) ;
0 commit comments