diff --git a/MatterControlLib/ApplicationView/ApplicationController.cs b/MatterControlLib/ApplicationView/ApplicationController.cs index f178ec331..3ab9e3d36 100644 --- a/MatterControlLib/ApplicationView/ApplicationController.cs +++ b/MatterControlLib/ApplicationView/ApplicationController.cs @@ -390,7 +390,7 @@ namespace MatterHackers.MatterControl public void ClosePrinter(PrinterConfig printer, bool allowChangedEvent = true) { // Actually clear printer - ProfileManager.Instance.RemoveOpenPrinter(printer.Settings.ID); + ProfileManager.Instance.ClosePrinter(printer.Settings.ID); _activePrinters.Remove(printer); @@ -1756,7 +1756,7 @@ namespace MatterHackers.MatterControl { if (!_activePrinters.Any(p => p.Settings.ID == printerID)) { - ProfileManager.Instance.AddOpenPrinter(printerID); + ProfileManager.Instance.OpenPrinter(printerID); var printer = new PrinterConfig(await ProfileManager.LoadSettingsAsync(printerID)); diff --git a/MatterControlLib/SlicerConfiguration/Settings/ProfileManager.cs b/MatterControlLib/SlicerConfiguration/Settings/ProfileManager.cs index 9276bde4d..cccd8b064 100644 --- a/MatterControlLib/SlicerConfiguration/Settings/ProfileManager.cs +++ b/MatterControlLib/SlicerConfiguration/Settings/ProfileManager.cs @@ -125,7 +125,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration if (openedPrinter != null) { // Clear selected printer state - ProfileManager.Instance.RemoveOpenPrinter(printerID); + ProfileManager.Instance.ClosePrinter(printerID); } UiThread.RunOnIdle(() => @@ -245,7 +245,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration [JsonIgnore] public IEnumerable OpenPrinterIDs => _activeProfileIDs; - public void AddOpenPrinter(string printerID) + public void OpenPrinter(string printerID) { try { @@ -260,7 +260,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration } } - public void RemoveOpenPrinter(string printerID) + public void ClosePrinter(string printerID) { try {