From: jpbruyere Date: Mon, 27 Feb 2017 11:56:35 +0000 (+0100) Subject: removed lock in set_Visible X-Git-Tag: v0.9.5-beta~239 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=ac735d616a8b46aae1bc2cfc94ba54712a2624bb;p=jp%2Fcrow.git removed lock in set_Visible --- 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