kourendlibrary: fix panel reloading not being done on the swing thread
This commit is contained in:
@@ -171,9 +171,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())
|
||||||
@@ -195,6 +196,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