private void RefreshCurrentPackagesConfig(CacheRootConfig config) { m_CurrentPackagesConfig = config; packagesCachePath.SetValueWithoutNotify(m_CurrentPackagesConfig.path.NormalizePath().EscapeBackslashes()); packagesCacheDropdown.SetEnabled(true); UIUtils.SetElementDisplay(packagesCacheErrorBox, false); }
private void RefreshCurrentPackagesConfig(CacheRootConfig config) { m_CurrentPackagesConfig = config; packagesCachePath.text = currentPackagesNormalizedPath.EscapeBackslashes(); packagesCacheDropdown.SetEnabled(true); UIUtils.SetElementDisplay(packagesCacheErrorBox, false); }
private void OnPackagesGetCacheRootOperationResult(CacheRootConfig config) { RefreshCurrentPackagesConfig(config); if (m_CurrentPackagesConfig.source == ConfigSource.Environment) { DisplayPackagesCacheErrorBox(HelpBoxMessageType.Info, L10n.Tr("The Packages Cache location is set by environment variable UPM_CACHE_ROOT, you cannot change it.")); } }
private void OnPackagesClearCacheRootOperationResult(CacheRootConfig config) { // Send analytics PackageCacheManagementAnalytics.SendUpmEvent("resetPath", new [] { m_CurrentPackagesConfig.source.ToString() }, new [] { config.source.ToString() }); RefreshCurrentPackagesConfig(config); m_ClientProxy.Resolve(); }
private void OnPackagesSetCacheRootOperationResult(CacheRootConfig config) { RefreshCurrentPackagesConfig(config); m_ClientProxy.Resolve(); }