Make CacheablePath public, throttle PublicProfile acquisition to every 20 sec.

This commit is contained in:
John Lewin 2016-09-19 13:20:12 -07:00
parent c23a738afe
commit fc4b5c681c
2 changed files with 4 additions and 1 deletions

View file

@ -177,8 +177,10 @@ namespace MatterHackers.MatterControl.SettingsManagement
var manufactures = result.Keys.ToDictionary(oem => oem);
SetManufacturers(manufactures);
}
return result;
});
if (oemProfilesDict != null)
{
await DownloadMissingProfiles(syncReport);
@ -200,6 +202,7 @@ namespace MatterHackers.MatterControl.SettingsManagement
string cachePath = ApplicationController.CacheablePath(cacheScope, publicDevice.CacheKey);
if (!File.Exists(cachePath))
{
await Task.Delay(20000);
await ProfileManager.LoadOemProfileAsync(publicDevice, oem, model);
if (syncReport != null)