Don't set new printer name to current printer

If no white list is set than do not filter
Make default MC white list be none
This commit is contained in:
Lars Brubaker 2016-06-07 17:39:17 -07:00
parent cfb0d4c055
commit 6cc61c53d0
4 changed files with 6 additions and 36 deletions

View file

@ -85,9 +85,10 @@ namespace MatterHackers.MatterControl.SettingsManagement
// Apply whitelist
var whiteListedItems = manufacturers?.Where(keyValue => PrinterWhiteList.Contains(keyValue.Key));
if (whiteListedItems == null)
if (whiteListedItems == null
|| whiteListedItems.Count() == 0)
{
AllOems = new List<KeyValuePair<string, string>>();
AllOems = new List<KeyValuePair<string, string>>(manufacturers);
return;
}