public void Load() { SurveyNewsCheck = _pyService.LoadEnum <SurveyNewsPolicy>(SurveyNewsCheckSetting, GeneralCategory) ?? SurveyNewsPolicy.CheckOnceWeek; SurveyNewsLastCheck = _pyService.LoadDateTime(SurveyNewsLastCheckSetting, GeneralCategory) ?? DateTime.MinValue; SurveyNewsFeedUrl = _pyService.LoadString(SurveyNewsFeedUrlSetting, GeneralCategory) ?? DefaultSurveyNewsFeedUrl; SurveyNewsIndexUrl = _pyService.LoadString(SurveyNewsIndexUrlSetting, GeneralCategory) ?? DefaultSurveyNewsIndexUrl; ShowOutputWindowForVirtualEnvCreate = _pyService.LoadBool(ShowOutputWindowForVirtualEnvCreateSetting, GeneralCategory) ?? true; ShowOutputWindowForPackageInstallation = _pyService.LoadBool(ShowOutputWindowForPackageInstallationSetting, GeneralCategory) ?? true; ElevatePip = _pyService.LoadBool(ElevatePipSetting, GeneralCategory) ?? false; ElevateEasyInstall = _pyService.LoadBool(ElevateEasyInstallSetting, GeneralCategory) ?? false; UnresolvedImportWarning = _pyService.LoadBool(UnresolvedImportWarningSetting, GeneralCategory) ?? true; ClearGlobalPythonPath = _pyService.LoadBool(ClearGlobalPythonPathSetting, GeneralCategory) ?? true; AutoAnalyzeStandardLibrary = _pyService.LoadBool(AutoAnalysisSetting, AdvancedCategory) ?? true; IndentationInconsistencySeverity = _pyService.LoadEnum <Severity>(IndentationInconsistencySeveritySetting, AdvancedCategory) ?? Severity.Warning; UpdateSearchPathsWhenAddingLinkedFiles = _pyService.LoadBool(UpdateSearchPathsWhenAddingLinkedFilesSetting, AdvancedCategory) ?? true; var analysisLimit = _pyService.LoadString(CrossModuleAnalysisLimitSetting, AdvancedCategory); if (analysisLimit == null) { CrossModuleAnalysisLimit = 1300; // default analysis limit } else if (analysisLimit == "-") { CrossModuleAnalysisLimit = null; } else { CrossModuleAnalysisLimit = Convert.ToInt32(analysisLimit); } Changed?.Invoke(this, EventArgs.Empty); }