Align settings gear (#311)
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user