Moving the ActivePrinterChanged call back and Active Printer calls all into ActivePrinterProfile
This commit is contained in:
parent
5036b364c0
commit
0040895615
21 changed files with 102 additions and 98 deletions
|
|
@ -40,8 +40,7 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
|
||||
doLayout();
|
||||
PrinterCommunication.Instance.ActivePrinterChanged.RegisterEvent(reloadAfterPrinterProfileChanged, ref unregisterEvents);
|
||||
|
||||
ActivePrinterProfile.Instance.ActivePrinterChanged.RegisterEvent(reloadAfterPrinterProfileChanged, ref unregisterEvents);
|
||||
}
|
||||
|
||||
public void doLayout()
|
||||
|
|
@ -76,7 +75,7 @@ namespace MatterHackers.MatterControl
|
|||
topToBottom.AddChild(exportSTL);
|
||||
}
|
||||
|
||||
bool showExportGCodeButton = PrinterCommunication.Instance.ActivePrinter != null || partIsGCode;
|
||||
bool showExportGCodeButton = ActivePrinterProfile.Instance.ActivePrinter != null || partIsGCode;
|
||||
|
||||
if(showExportGCodeButton)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue