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
commit2221764b06e69a2b77207cfa609141b3a06c8baa (patch)
tree496220f255f660f41c615152437da33da5fb0587 /src/Interface.cs
parentb24c3ed66620aa63f7ae2b1e24ad5db0114d913a (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;