diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2017-02-27 12:56:35 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2017-02-27 12:56:35 +0100 |
| commit | ac735d616a8b46aae1bc2cfc94ba54712a2624bb (patch) | |
| tree | e083d795a96d9f529a33d5d93fe33cee5a83cdd7 /src/GraphicObjects | |
| parent | cb712599396368b2a70fb6e3ced326acc25f0610 (diff) | |
removed lock in set_Visible
Diffstat (limited to 'src/GraphicObjects')
| -rw-r--r-- | src/GraphicObjects/GraphicObject.cs | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/GraphicObjects/GraphicObject.cs b/src/GraphicObjects/GraphicObject.cs index 22bfdea2..059fc568 100644 --- a/src/GraphicObjects/GraphicObject.cs +++ b/src/GraphicObjects/GraphicObject.cs @@ -516,15 +516,13 @@ namespace Crow if (isVisible) RegisterForLayouting (LayoutingType.Sizing); else { - lock (CurrentInterface.UpdateMutex) { - Slot.Width = 0; - LayoutChanged.Raise (this, new LayoutingEventArgs (LayoutingType.Width)); - Slot.Height = 0; - LayoutChanged.Raise (this, new LayoutingEventArgs (LayoutingType.Height)); - if (this.parent != null) - CurrentInterface.EnqueueForRepaint (this); - LastSlots.Width = LastSlots.Height = 0; - } + Slot.Width = 0; + LayoutChanged.Raise (this, new LayoutingEventArgs (LayoutingType.Width)); + Slot.Height = 0; + LayoutChanged.Raise (this, new LayoutingEventArgs (LayoutingType.Height)); + if (this.parent != null) + CurrentInterface.EnqueueForRepaint (this); + LastSlots.Width = LastSlots.Height = 0; } //trigger a mouse to handle possible hover changes |