Apply whitelist

This commit is contained in:
John Lewin 2015-11-18 17:22:40 -08:00
parent 9233b273c8
commit 06e98e8248

View file

@ -62,6 +62,12 @@ namespace MatterHackers.MatterControl
{
string folderName = Path.GetFileName(manufacturerDirectory.TrimEnd(new[] { '/', '\\' }));
// Apply whitelist
if (!printerWhiteListStrings.Contains(folderName))
{
continue;
}
// Set manufacturer name to the directory name
this.manufacturer = Path.GetFileName(manufacturerDirectory);