Load the components in the foreground thread so they are completely

loaded before trying to read an ork file from the command line.
This commit is contained in:
kruland2607 2013-04-26 21:28:21 -05:00
parent 1e2c64b6f0
commit 8baf9e6676

View File

@ -20,8 +20,8 @@ import net.sf.openrocket.gui.main.BasicFrame;
import net.sf.openrocket.gui.main.MRUDesignFile;
import net.sf.openrocket.gui.main.Splash;
import net.sf.openrocket.gui.main.SwingExceptionHandler;
import net.sf.openrocket.gui.util.GUIUtil;
import net.sf.openrocket.gui.util.BlockingMotorDatabaseProvider;
import net.sf.openrocket.gui.util.GUIUtil;
import net.sf.openrocket.gui.util.SwingPreferences;
import net.sf.openrocket.logging.LogHelper;
import net.sf.openrocket.util.BuildProperties;
@ -165,14 +165,13 @@ public class ApplicationStartup {
}
/**
* Start loading preset components in background thread.
*
* Public for Python bindings.
*/
public void loadPresetComponents() {
ComponentPresetDatabase componentPresetDao = new ComponentPresetDatabase(true) {
ComponentPresetDatabase componentPresetDao = new ComponentPresetDatabase(false) {
@Override
protected void load() {
ConcurrentComponentPresetDatabaseLoader presetLoader = new ConcurrentComponentPresetDatabaseLoader(this);