runelite-client: fix some incorrect swing usage
All swing operations should be on the event dispatch thread
This commit is contained in:
@@ -41,6 +41,7 @@ import java.io.InputStreamReader;
|
||||
import java.util.concurrent.Executors;
|
||||
import java.util.concurrent.ScheduledExecutorService;
|
||||
import javax.imageio.ImageIO;
|
||||
import javax.swing.SwingUtilities;
|
||||
import joptsimple.OptionParser;
|
||||
import joptsimple.OptionSet;
|
||||
import net.runelite.api.Client;
|
||||
@@ -118,9 +119,12 @@ public class RuneLite
|
||||
|
||||
public void start() throws Exception
|
||||
{
|
||||
gui = new ClientUI();
|
||||
SwingUtilities.invokeAndWait(() ->
|
||||
{
|
||||
gui = new ClientUI();
|
||||
|
||||
setupTrayIcon();
|
||||
setupTrayIcon();
|
||||
});
|
||||
|
||||
configManager.load();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user