aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/ListBox.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-10-19 16:50:03 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-10-19 16:50:03 +0200
commitf5f814e551005979e9e0c0003bde3d6bde67df01 (patch)
tree739d74f3f9c696d3812376c4ad9b0ff57c066bbe /src/GraphicObjects/ListBox.cs
parent5223bf7dc4f5f085d4bfde7c079a45adf5f344e7 (diff)
test Directory viewer
Diffstat (limited to 'src/GraphicObjects/ListBox.cs')
-rw-r--r--src/GraphicObjects/ListBox.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/GraphicObjects/ListBox.cs b/src/GraphicObjects/ListBox.cs
index 5f2e5454..5f1b8eda 100644
--- a/src/GraphicObjects/ListBox.cs
+++ b/src/GraphicObjects/ListBox.cs
@@ -96,7 +96,9 @@ namespace go
thread = new Thread(loadingThread);
loadingInProgress = true;
+ thread.IsBackground = true;
thread.Start ();
+ thread.Join ();
}
}
// public override void UpdateLayout (LayoutingType layoutType)
@@ -109,7 +111,7 @@ namespace go
if (!loadingInProgress)
return;
lock (pendingChildrenAddition) {
- if (!threadedLoadingFinished && pendingChildrenAddition.Count < 50)
+ if (!threadedLoadingFinished && pendingChildrenAddition.Count < 10)
return;
while (pendingChildrenAddition.Count > 0) {
GraphicObject tmp = pendingChildrenAddition.Dequeue ();