]> O.S.I.I.S - jp/crow.git/commitdiff
removed lock in set_Visible
authorjpbruyere <jp.bruyere@hotmail.com>
Mon, 27 Feb 2017 11:56:35 +0000 (12:56 +0100)
committerjpbruyere <jp.bruyere@hotmail.com>
Mon, 27 Feb 2017 11:56:35 +0000 (12:56 +0100)
src/GraphicObjects/GraphicObject.cs

index 22bfdea29ae02fd3555260a524a0c693369afffa..059fc568deffde69a6126a5f815fd032e61844a7 100644 (file)
@@ -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