aboutsummaryrefslogtreecommitdiffstatsci
path: root/CrowIDE/src/DesignInterface.cs
diff options
context:
space:
mode:
Diffstat (limited to 'CrowIDE/src/DesignInterface.cs')
-rw-r--r--CrowIDE/src/DesignInterface.cs23
1 files changed, 15 insertions, 8 deletions
diff --git a/CrowIDE/src/DesignInterface.cs b/CrowIDE/src/DesignInterface.cs
index 9ac9e9a5..532d7f3d 100644
--- a/CrowIDE/src/DesignInterface.cs
+++ b/CrowIDE/src/DesignInterface.cs
@@ -158,13 +158,16 @@ namespace Crow.Coding
protected override void processLayouting ()
{
- #if DBG_EVENTS
- DbgStartSubEvt(DbgEvtType.IFaceLayouting);
- #endif
-
if (Monitor.TryEnter (LayoutMutex)) {
DiscardQueue = new Queue<LayoutingQueueItem> ();
LayoutingQueueItem lqi;
+ #if DBG_EVENTS
+ bool logLayouting = false;
+ if (LayoutingQueue.Count > 0){
+ DbgStartSubEvt(DbgEvtType.IFaceLayouting);
+ logLayouting = true;
+ }
+ #endif
while (LayoutingQueue.Count > 0) {
lqi = LayoutingQueue.Dequeue ();
#if DBG_EVENTS
@@ -175,14 +178,18 @@ namespace Crow.Coding
DbgEndSubEvt();
#endif
}
+ #if DBG_EVENTS
+ if (logLayouting)
+ DbgEndSubEvt();
+ #endif
LayoutingQueue = DiscardQueue;
Monitor.Exit (LayoutMutex);
DiscardQueue = null;
}
-
- #if DBG_EVENTS
- DbgEndSubEvt();
- #endif
+ }
+ public override string ToString ()
+ {
+ return string.Format ("DI");
}
}
}