From 06e98e824865d09896eb035c81dc08a2af4daa44 Mon Sep 17 00:00:00 2001 From: John Lewin Date: Wed, 18 Nov 2015 17:22:40 -0800 Subject: [PATCH] Apply whitelist --- PrinterControls/PrinterConnections/PrinterChooser.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PrinterControls/PrinterConnections/PrinterChooser.cs b/PrinterControls/PrinterConnections/PrinterChooser.cs index c5df4b292..d325d4afc 100644 --- a/PrinterControls/PrinterConnections/PrinterChooser.cs +++ b/PrinterControls/PrinterConnections/PrinterChooser.cs @@ -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);