Make deprecated ActivePrinter return first open printer or Empty

This commit is contained in:
John Lewin 2018-11-21 19:23:52 -08:00
parent 138898a4b7
commit 4016f0e4bb

View file

@ -348,7 +348,7 @@ namespace MatterHackers.MatterControl
// PrinterConnection.IsPrinterConnected, that could should be updated to iterate ActiverPrinters, checking each one and acting on each as it would
// have for the single case
[Obsolete("ActivePrinter references should be migrated to logic than supports multi-printer mode")]
public PrinterConfig ActivePrinter { get; private set; } = PrinterConfig.EmptyPrinter;
public PrinterConfig ActivePrinter => this.ActivePrinters.FirstOrDefault() ?? PrinterConfig.EmptyPrinter;
public Action RedeemDesignCode;
public Action EnterShareCode;