Have to call the changed printer when needed.
This commit is contained in:
parent
aa50fd3722
commit
ecabfa08b5
1 changed files with 14 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue