Skip to content

Commit

Permalink
Implement complete glow option.
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Feb 12, 2019
1 parent a392e0d commit 810d57e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,8 @@ private PanelItem getChallengeButton(Challenge challenge)

return true;
}).
glow(this.challengesManager.isChallengeComplete(this.user, challenge)).
glow(this.addon.getChallengesSettings().isAddCompletedGlow() &&
this.challengesManager.isChallengeComplete(this.user, challenge)).
build();
}

Expand Down Expand Up @@ -398,7 +399,8 @@ else if (level.isUnlocked())
this.build();
return true;
};
glow = this.challengesManager.isLevelCompleted(this.user, level.getLevel());
glow = this.addon.getChallengesSettings().isAddCompletedGlow() &&
this.challengesManager.isLevelCompleted(this.user, level.getLevel());
}
else
{
Expand Down

0 comments on commit 810d57e

Please sign in to comment.