Merge pull request #10506 from Hydrox6/library-swing
kourendlibrary: fix panel reloading not being done on the swing thread
This commit is contained in:
@@ -174,9 +174,10 @@ public class KourendLibraryPlugin extends Plugin
|
|||||||
|
|
||||||
if (ev.getKey().equals("hideVarlamoreEnvoy"))
|
if (ev.getKey().equals("hideVarlamoreEnvoy"))
|
||||||
{
|
{
|
||||||
panel.reload();
|
SwingUtilities.invokeLater(panel::reload);
|
||||||
}
|
}
|
||||||
|
else if (ev.getKey().equals("hideButton"))
|
||||||
|
{
|
||||||
SwingUtilities.invokeLater(() ->
|
SwingUtilities.invokeLater(() ->
|
||||||
{
|
{
|
||||||
if (!config.hideButton())
|
if (!config.hideButton())
|
||||||
@@ -198,6 +199,7 @@ public class KourendLibraryPlugin extends Plugin
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void onMenuOptionClicked(MenuOptionClicked menuOpt)
|
public void onMenuOptionClicked(MenuOptionClicked menuOpt)
|
||||||
|
|||||||
Reference in New Issue
Block a user