Only call Invalidate on change
- Issue MatterHackers/MCCentral#3067 Hang on MatterControl close if Extruder/Bed popup open
This commit is contained in:
parent
ea6c45aa0a
commit
267082b2be
1 changed files with 5 additions and 2 deletions
|
|
@ -60,8 +60,11 @@ namespace MatterHackers.MatterControl.CustomWidgets
|
|||
get => _checked;
|
||||
set
|
||||
{
|
||||
_checked = value;
|
||||
this.Invalidate();
|
||||
if (_checked != value)
|
||||
{
|
||||
_checked = value;
|
||||
this.Invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue