Align settings gear (#311)

This commit is contained in:
sdburns1998
2019-05-19 19:38:12 +01:00
committed by Kyleeld
parent 8daf70c2b1
commit 0fbf5170f7
@@ -195,12 +195,16 @@ public class PluginListItem extends JPanel
configButton.setVisible(true); configButton.setVisible(true);
configButton.setToolTipText("Edit plugin configuration"); configButton.setToolTipText("Edit plugin configuration");
} }
if (!name.equals("RuneLitePlus"))
toggleButton.setPreferredSize(new Dimension(25, 0));
attachToggleButtonListener(toggleButton);
if (name.equals("RuneLitePlus"))
{ {
toggleButton.setPreferredSize(new Dimension(25, 0)); toggleButton.setVisible(false);
attachToggleButtonListener(toggleButton);
buttonPanel.add(toggleButton);
} }
buttonPanel.add(toggleButton);
} }
private void attachToggleButtonListener(IconButton button) private void attachToggleButtonListener(IconButton button)