From 5270e81ac319063535bfbdbebf0959f51c191504 Mon Sep 17 00:00:00 2001 From: sk89q Date: Fri, 20 Feb 2015 01:40:57 -0800 Subject: [PATCH] Show the main launcher view slightly quicker. --- .../java/com/skcraft/launcher/dialog/LauncherFrame.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/launcher/src/main/java/com/skcraft/launcher/dialog/LauncherFrame.java b/launcher/src/main/java/com/skcraft/launcher/dialog/LauncherFrame.java index 631dd2f..53c84c2 100644 --- a/launcher/src/main/java/com/skcraft/launcher/dialog/LauncherFrame.java +++ b/launcher/src/main/java/com/skcraft/launcher/dialog/LauncherFrame.java @@ -70,7 +70,12 @@ public class LauncherFrame extends JFrame { SwingHelper.setIconImage(this, Launcher.class, "icon.png"); - loadInstances(); + SwingUtilities.invokeLater(new Runnable() { + @Override + public void run() { + loadInstances(); + } + }); } private void initComponents() {