@@ -426,39 +426,42 @@ private bool BuildReportFilter(object item)
426
426
427
427
void LoadSettings ( )
428
428
{
429
+ // debug, print filename
430
+ //Console.WriteLine(ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.PerUserRoamingAndLocal).FilePath);
431
+
429
432
// catch corrupted config file
430
433
try
431
434
{
432
435
Settings . Default . Reload ( ) ;
433
436
// form size
434
- this . Width = Properties . Settings . Default . windowWidth ;
435
- this . Height = Properties . Settings . Default . windowHeight ;
437
+ this . Width = Settings . Default . windowWidth ;
438
+ this . Height = Settings . Default . windowHeight ;
436
439
437
- chkMinimizeToTaskbar . IsChecked = Properties . Settings . Default . minimizeToTaskbar ;
438
- chkRegisterExplorerMenu . IsChecked = Properties . Settings . Default . registerExplorerMenu ;
440
+ chkMinimizeToTaskbar . IsChecked = Settings . Default . minimizeToTaskbar ;
441
+ chkRegisterExplorerMenu . IsChecked = Settings . Default . registerExplorerMenu ;
439
442
440
443
// update settings window
441
- chkQuitAfterCommandline . IsChecked = Properties . Settings . Default . closeAfterExplorer ;
442
- chkQuitAfterOpen . IsChecked = Properties . Settings . Default . closeAfterProject ;
443
- chkShowLauncherArgumentsColumn . IsChecked = Properties . Settings . Default . showArgumentsColumn ;
444
- chkShowGitBranchColumn . IsChecked = Properties . Settings . Default . showGitBranchColumn ;
445
- chkGetGitBranchRecursively . IsChecked = Properties . Settings . Default . searchGitFolderRecursivly ;
446
- chkCheckPlasticBranch . IsChecked = Properties . Settings . Default . checkPlasticBranch ;
447
- chkShowMissingFolderProjects . IsChecked = Properties . Settings . Default . showProjectsMissingFolder ;
448
- chkAllowSingleInstanceOnly . IsChecked = Properties . Settings . Default . AllowSingleInstanceOnly ;
449
- chkAskNameForQuickProject . IsChecked = Properties . Settings . Default . askNameForQuickProject ;
450
- chkEnableProjectRename . IsChecked = Properties . Settings . Default . enableProjectRename ;
451
- chkStreamerMode . IsChecked = Properties . Settings . Default . streamerMode ;
452
- chkShowPlatform . IsChecked = Properties . Settings . Default . showTargetPlatform ;
453
- chkUseCustomTheme . IsChecked = Properties . Settings . Default . useCustomTheme ;
454
- txtRootFolderForNewProjects . Text = Properties . Settings . Default . newProjectsRoot ;
455
- txtWebglRelativePath . Text = Properties . Settings . Default . webglBuildPath ;
456
- txtCustomThemeFile . Text = Properties . Settings . Default . themeFile ;
457
- useAlphaReleaseNotesSite . IsChecked = Properties . Settings . Default . useAlphaReleaseNotes ;
458
-
459
- chkEnablePlatformSelection . IsChecked = Properties . Settings . Default . enablePlatformSelection ;
460
- chkRunAutomatically . IsChecked = Properties . Settings . Default . runAutomatically ;
461
- chkRunAutomaticallyMinimized . IsChecked = Properties . Settings . Default . runAutomaticallyMinimized ;
444
+ chkQuitAfterCommandline . IsChecked = Settings . Default . closeAfterExplorer ;
445
+ chkQuitAfterOpen . IsChecked = Settings . Default . closeAfterProject ;
446
+ chkShowLauncherArgumentsColumn . IsChecked = Settings . Default . showArgumentsColumn ;
447
+ chkShowGitBranchColumn . IsChecked = Settings . Default . showGitBranchColumn ;
448
+ chkGetGitBranchRecursively . IsChecked = Settings . Default . searchGitFolderRecursivly ; // FIXME typo
449
+ chkCheckPlasticBranch . IsChecked = Settings . Default . checkPlasticBranch ;
450
+ chkShowMissingFolderProjects . IsChecked = Settings . Default . showProjectsMissingFolder ;
451
+ chkAllowSingleInstanceOnly . IsChecked = Settings . Default . AllowSingleInstanceOnly ;
452
+ chkAskNameForQuickProject . IsChecked = Settings . Default . askNameForQuickProject ;
453
+ chkEnableProjectRename . IsChecked = Settings . Default . enableProjectRename ;
454
+ chkStreamerMode . IsChecked = Settings . Default . streamerMode ;
455
+ chkShowPlatform . IsChecked = Settings . Default . showTargetPlatform ;
456
+ chkUseCustomTheme . IsChecked = Settings . Default . useCustomTheme ;
457
+ txtRootFolderForNewProjects . Text = Settings . Default . newProjectsRoot ;
458
+ txtWebglRelativePath . Text = Settings . Default . webglBuildPath ;
459
+ txtCustomThemeFile . Text = Settings . Default . themeFile ;
460
+ useAlphaReleaseNotesSite . IsChecked = Settings . Default . useAlphaReleaseNotes ;
461
+
462
+ chkEnablePlatformSelection . IsChecked = Settings . Default . enablePlatformSelection ;
463
+ chkRunAutomatically . IsChecked = Settings . Default . runAutomatically ;
464
+ chkRunAutomaticallyMinimized . IsChecked = Settings . Default . runAutomaticallyMinimized ;
462
465
463
466
// update optional grid columns, hidden or visible
464
467
gridRecent . Columns [ 4 ] . Visibility = ( bool ) chkShowLauncherArgumentsColumn . IsChecked ? Visibility . Visible : Visibility . Collapsed ;
@@ -469,7 +472,7 @@ void LoadSettings()
469
472
lstRootFolders . Items . Clear ( ) ;
470
473
471
474
// check if no installation root folders are added, then add default folder(s), this usually happens only on first run (or if user has not added any folders)
472
- if ( Properties . Settings . Default . rootFolders . Count == 0 )
475
+ if ( Settings . Default . rootFolders . Count == 0 )
473
476
{
474
477
// default hub installation folder
475
478
string baseFolder = "\\ Program Files\\ Unity\\ Hub\\ Editor" ;
0 commit comments