client: first first time bootup failure
This fixes a long standing problem. On first time startup for OPRS, pluginList will return null, and plugins installed during that first bootup will no longer update in the list. Requiring every single new user to restart the client at least once before using any new plugins.
This commit is contained in:
@@ -701,6 +701,9 @@ public class PluginListPanel extends PluginPanel
|
||||
|
||||
public void sortPluginList(Comparator<PluginListItem> comparator)
|
||||
{
|
||||
if (pluginList == null)
|
||||
return;
|
||||
|
||||
if (comparator != null)
|
||||
{
|
||||
pluginList.sort(comparator.thenComparing(ev -> ev.getPluginConfig().getName()));
|
||||
|
||||
Reference in New Issue
Block a user