Merge pull request #10506 from Hydrox6/library-swing

kourendlibrary: fix panel reloading not being done on the swing thread
This commit is contained in:
Adam
2019-12-29 14:35:02 -05:00
committed by GitHub

View File

@@ -174,9 +174,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())
@@ -198,6 +199,7 @@ public class KourendLibraryPlugin extends Plugin
}
});
}
}
@Subscribe
public void onMenuOptionClicked(MenuOptionClicked menuOpt)