From d23065a2f87bddced85f8b21a2e55e1441ea5593 Mon Sep 17 00:00:00 2001 From: Kevin Pope Date: Mon, 24 Feb 2014 10:52:24 -0800 Subject: [PATCH] Changing printer profiles now triggers refresh of the auto-level indicator. --- ActionBar/PrintStatusRow.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ActionBar/PrintStatusRow.cs b/ActionBar/PrintStatusRow.cs index 43d7a4460..f51d37ef1 100644 --- a/ActionBar/PrintStatusRow.cs +++ b/ActionBar/PrintStatusRow.cs @@ -125,6 +125,12 @@ namespace MatterHackers.MatterControl.ActionBar notifyButton.MouseLeaveBounds += (sender, mouseEvent) => { HelpTextWidget.Instance.HideHoverText(); }; notifyButton.Visible = ActivePrinterProfile.Instance.DoPrintLeveling; + ActivePrinterProfile.Instance.ActivePrinterChanged.RegisterEvent((sender, e) => + { + notifyButton.Visible = ActivePrinterProfile.Instance.DoPrintLeveling; + + }, ref unregisterEvents); + ActivePrinterProfile.Instance.DoPrintLevelingChanged.RegisterEvent((sender, e) => { notifyButton.Visible = ActivePrinterProfile.Instance.DoPrintLeveling;