Changing printer profiles now triggers refresh of the auto-level indicator.
This commit is contained in:
parent
4ec57b97ca
commit
d23065a2f8
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue