Remove unused progress reporter
- Original system showed sync progress - later revised with 20s delays per profile - reporting would take ages and isn't used
This commit is contained in:
parent
556821fdef
commit
7bc60034fc
1 changed files with 4 additions and 10 deletions
|
|
@ -154,6 +154,7 @@ namespace MatterHackers.MatterControl.SettingsManagement
|
|||
public OemProfileDictionary OemProfiles { get; set; }
|
||||
|
||||
public Dictionary<string, string> OemUrls { get; }
|
||||
|
||||
public Dictionary<string, StorePrinterID> OemPrinters { get; }
|
||||
|
||||
[OnDeserialized]
|
||||
|
|
@ -176,7 +177,7 @@ namespace MatterHackers.MatterControl.SettingsManagement
|
|||
return JsonConvert.DeserializeObject<OemProfileDictionary>(json);
|
||||
}
|
||||
|
||||
public async Task ReloadOemProfiles(IProgress<ProgressStatus> syncReport = null)
|
||||
public async Task ReloadOemProfiles()
|
||||
{
|
||||
// In public builds this won't be assigned to and we should exit
|
||||
if (ApplicationController.GetPublicProfileList == null)
|
||||
|
|
@ -201,10 +202,10 @@ namespace MatterHackers.MatterControl.SettingsManagement
|
|||
return result;
|
||||
});
|
||||
|
||||
await DownloadMissingProfiles(syncReport);
|
||||
await DownloadMissingProfiles();
|
||||
}
|
||||
|
||||
private async Task DownloadMissingProfiles(IProgress<ProgressStatus> syncReport)
|
||||
private async Task DownloadMissingProfiles()
|
||||
{
|
||||
ProgressStatus reportValue = new ProgressStatus();
|
||||
int index = 0;
|
||||
|
|
@ -226,13 +227,6 @@ namespace MatterHackers.MatterControl.SettingsManagement
|
|||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (syncReport != null)
|
||||
{
|
||||
reportValue.Status = string.Format("Downloading public profiles for {0}...", oem);
|
||||
reportValue.Progress0To1 = (double)index / OemProfiles.Count;
|
||||
syncReport.Report(reportValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue