kourendlibrary: fix panel reloading not being done on the swing thread

This commit is contained in:
Hydrox6
2019-12-27 22:33:52 +00:00
parent 6782d888d7
commit e2815526cc

View File

@@ -171,9 +171,10 @@ public class KourendLibraryPlugin extends Plugin
if (ev.getKey().equals("hideVarlamoreEnvoy"))
{
panel.reload();
SwingUtilities.invokeLater(panel::reload);
}
else if (ev.getKey().equals("hideButton"))
{
SwingUtilities.invokeLater(() ->
{
if (!config.hideButton())
@@ -195,6 +196,7 @@ public class KourendLibraryPlugin extends Plugin
}
});
}
}
@Subscribe
public void onMenuOptionClicked(MenuOptionClicked menuOpt)