aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Interface.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-23 12:07:22 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-02-23 12:07:22 +0100
commit938d7a404ec022a077579a8245e80d6fa5bbb890 (patch)
tree24cce03708b03fdfddc75dcecc58d2986c992317 /src/Interface.cs
parentc6ca894ad25ed736e58464dfb0b224145691f529 (diff)
crowIDE wip, lock layouting for items loading in tg
Diffstat (limited to 'src/Interface.cs')
-rw-r--r--src/Interface.cs18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/Interface.cs b/src/Interface.cs
index 485101e6..3d2389b2 100644
--- a/src/Interface.cs
+++ b/src/Interface.cs
@@ -1091,16 +1091,18 @@ namespace Crow
public void ShowContextMenu (GraphicObject go) {
- if (ctxMenuContainer.Parent == null)
- this.AddWidget (ctxMenuContainer);
- else
- ctxMenuContainer.IsOpened = true;
+ lock (UpdateMutex) {
+ if (ctxMenuContainer.Parent == null)
+ this.AddWidget (ctxMenuContainer);
+ else
+ ctxMenuContainer.IsOpened = true;
- ctxMenuContainer.isPopup = true;
- ctxMenuContainer.LogicalParent = go;
- ctxMenuContainer.DataSource = go;
+ ctxMenuContainer.isPopup = true;
+ ctxMenuContainer.LogicalParent = go;
+ ctxMenuContainer.DataSource = go;
- PutOnTop (ctxMenuContainer, true);
+ PutOnTop (ctxMenuContainer, true);
+ }
ctxMenuContainer.Left = Mouse.X - 5;
ctxMenuContainer.Top = Mouse.Y - 5;