Skip to content

Commit

Permalink
Merge pull request runelite#3036 from AlexKolpa/reset-xp-skill
Browse files Browse the repository at this point in the history
Clear plugin skill tracking on reset
  • Loading branch information
deathbeam authored May 20, 2018
2 parents 7831ace + bc62e16 commit 3b89933
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
@Slf4j
class XpInfoBox extends JPanel
{
private final Client client;
private final JPanel panel;

@Getter(AccessLevel.PACKAGE)
Expand All @@ -78,7 +77,6 @@ class XpInfoBox extends JPanel

XpInfoBox(XpTrackerPlugin xpTrackerPlugin, Client client, JPanel panel, Skill skill, SkillIconManager iconManager) throws IOException
{
this.client = client;
this.panel = panel;
this.skill = skill;

Expand All @@ -94,7 +92,7 @@ class XpInfoBox extends JPanel

// Create reset menu
final JMenuItem reset = new JMenuItem("Reset");
reset.addActionListener(e -> reset());
reset.addActionListener(e -> xpTrackerPlugin.resetSkillState(skill));

// Create popup menu
final JPopupMenu popupMenu = new JPopupMenu();
Expand Down

0 comments on commit 3b89933

Please sign in to comment.