Remove OpenPrinterIDs from ProfileManager

- Issue MatterHackers/MCCentral#4729
Investigate failing PrinterNameChange test
This commit is contained in:
John Lewin 2018-12-19 09:09:17 -08:00
parent 0bdb7823e9
commit c66b29e90e
3 changed files with 16 additions and 15 deletions

View file

@ -91,8 +91,8 @@ namespace MatterHackers.MatterControl.DataStorage.ClassicDB
printerSettings.UserLayer[SettingsKey.device_token] = printer.DeviceToken ?? "";
printerSettings.UserLayer[SettingsKey.device_type] = printer.DeviceType ?? "";
// Open the first imported printer if undefined
if (!ProfileManager.Instance.OpenPrinterIDs.Any())
// Open the first imported printer if no active printer
if (!ApplicationController.Instance.ActivePrinters.Any())
{
ApplicationController.Instance.OpenEmptyPrinter(printer.Id.ToString()).ConfigureAwait(false);
}