Name the loading thread and ask java to push its priority down.
[debian/openrocket] / core / src / net / sf / openrocket / database / ComponentPresetDatabase.java
index 26cec70d20b202e36df44b0d4c818d8b3c33c928..bb2fae2b981957efa0323695f7f726f758b1451c 100644 (file)
@@ -171,6 +171,11 @@ public abstract class ComponentPresetDatabase extends Database<ComponentPreset>
         * Background thread for loading the presets. 
         */
        private class LoadingThread extends Thread {
+               
+               private LoadingThread() {
+                       this.setName("PresetLoadingThread");
+                       this.setPriority(MIN_PRIORITY);
+               }
                @Override
                public void run() {
                        load();