From ecabfa08b52bce1e448a53991ccb9fc2e51254f8 Mon Sep 17 00:00:00 2001 From: larsbrubaker Date: Fri, 14 Feb 2014 12:19:45 -0800 Subject: [PATCH] Have to call the changed printer when needed. --- ActivePrinterProfile.cs | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/ActivePrinterProfile.cs b/ActivePrinterProfile.cs index 6a48e9488..05d8af95b 100644 --- a/ActivePrinterProfile.cs +++ b/ActivePrinterProfile.cs @@ -33,7 +33,20 @@ namespace MatterHackers.MatterControl { } - public Printer ActivePrinter { get; set; } + Printer activePrinter = null; + public Printer ActivePrinter + { + get { return activePrinter; } + set + { + if (activePrinter != value) + { + PrinterCommunication.Instance.Disable(); + activePrinter = value; + globalInstance.OnActivePrinterChanged(null); + } + } + } public static ActivePrinterProfile Instance { @@ -46,16 +59,6 @@ namespace MatterHackers.MatterControl return globalInstance; } - - set - { - if (globalInstance != value) - { - PrinterCommunication.Instance.Disable(); - globalInstance = value; - globalInstance.OnActivePrinterChanged(null); - } - } } public SlicingEngine ActiveSliceEngine