Apply whitelist
This commit is contained in:
parent
9233b273c8
commit
06e98e8248
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue