Only call Invalidate on change

- Issue MatterHackers/MCCentral#3067
Hang on MatterControl close if Extruder/Bed popup open
This commit is contained in:
John Lewin 2018-04-07 14:26:24 -07:00
parent ea6c45aa0a
commit 267082b2be

View file

@ -60,8 +60,11 @@ namespace MatterHackers.MatterControl.CustomWidgets
get => _checked;
set
{
_checked = value;
this.Invalidate();
if (_checked != value)
{
_checked = value;
this.Invalidate();
}
}
}