예제 #1
0
 private void RefreshCurrentPackagesConfig(CacheRootConfig config)
 {
     m_CurrentPackagesConfig = config;
     packagesCachePath.SetValueWithoutNotify(m_CurrentPackagesConfig.path.NormalizePath().EscapeBackslashes());
     packagesCacheDropdown.SetEnabled(true);
     UIUtils.SetElementDisplay(packagesCacheErrorBox, false);
 }
예제 #2
0
 private void RefreshCurrentPackagesConfig(CacheRootConfig config)
 {
     m_CurrentPackagesConfig = config;
     packagesCachePath.text  = currentPackagesNormalizedPath.EscapeBackslashes();
     packagesCacheDropdown.SetEnabled(true);
     UIUtils.SetElementDisplay(packagesCacheErrorBox, false);
 }
예제 #3
0
 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."));
     }
 }
예제 #4
0
        private void OnPackagesClearCacheRootOperationResult(CacheRootConfig config)
        {
            // Send analytics
            PackageCacheManagementAnalytics.SendUpmEvent("resetPath",
                                                         new [] { m_CurrentPackagesConfig.source.ToString() },
                                                         new [] { config.source.ToString() });

            RefreshCurrentPackagesConfig(config);
            m_ClientProxy.Resolve();
        }
예제 #5
0
 private void OnPackagesSetCacheRootOperationResult(CacheRootConfig config)
 {
     RefreshCurrentPackagesConfig(config);
     m_ClientProxy.Resolve();
 }