Skip to content

Commit

Permalink
feat: limit Battlegrounds session recap to 8 games
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Aug 15, 2024
1 parent 737af13 commit 0d43d5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ private void HandleCompStatsError(Exception error)

SessionGames.Clear();
sessionGames
.GetRange(Math.Max(sessionGames.Count - 10, 0), Math.Min(10, sessionGames.Count))
.GetRange(Math.Max(sessionGames.Count - 8, 0), Math.Min(8, sessionGames.Count))
.OrderByDescending(g => g.StartTime)
.ToList()
.ForEach(AddOrUpdateGame);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public class BattlegroundsSettings
[JsonProperty("start_and_current_mmr")]
public bool StartAndCurrentMMR { get => Config.Instance.ShowSessionRecapStartCurrentMMR; }

[JsonProperty("latest_10_game")]
public bool Latest10Game { get => Config.Instance.ShowSessionRecapLatestGames; }
[JsonProperty("latest_games")]
public bool LatestGames { get => Config.Instance.ShowSessionRecapLatestGames; }

[JsonProperty("tier7_overlay")]
public bool Tier7Overlay { get => Config.Instance.EnableBattlegroundsTier7Overlay; }
Expand Down

0 comments on commit 0d43d5b

Please sign in to comment.