Merge pull request #1190 from mmoening/master

Fixed bug where would try to write to a OemProfile Twice throwing an exception
This commit is contained in:
johnlewin 2016-07-26 12:41:55 -07:00 committed by GitHub
commit 80a52c8355

View file

@ -132,8 +132,6 @@ namespace MatterHackers.MatterControl.SettingsManagement
var manufacturesList = OemProfiles.Keys.ToDictionary(oem => oem).ToList();
SetManufacturers(manufacturesList);
ApplicationController.Load += (s,e) => ReloadOemProfiles();
}
public async Task ReloadOemProfiles()
@ -157,7 +155,7 @@ namespace MatterHackers.MatterControl.SettingsManagement
var manufactures = oemProfiles.Keys.ToDictionary(oem => oem);
SetManufacturers(manufactures);
Task.Run((Action)DownloadMissingProfiles);
DownloadMissingProfiles();
}
}