Skip to content

Clear historic entry when default skin is played#94

Open
Kneju wants to merge 2 commits into
Alban1911:mainfrom
Kneju:fix/historic-clear-on-default-skin
Open

Clear historic entry when default skin is played#94
Kneju wants to merge 2 commits into
Alban1911:mainfrom
Kneju:fix/historic-clear-on-default-skin

Conversation

@Kneju
Copy link
Copy Markdown

@Kneju Kneju commented May 13, 2026

When a champion is played on the default skin, the historic entry was
never cleared from historic.json, causing the custom skin popup to
reappear on the next champion select even though the user's last
choice was the default skin.

Extended the default skin check from ui_skin_id == 0 to
is_default_skin(ui_skin_id) to catch the actual base skin ID
(champion_id * 1000), and call clear_historic_entry() so the file
reflects the user's last real choice.

  When a champion is played on the default skin, the historic entry was
  never cleared from historic.json, causing the custom skin popup to
  reappear on the next champion select even though the user's last
  choice was the default skin.

  Extended the default skin check from ui_skin_id == 0 to
  is_default_skin(ui_skin_id) to catch the actual base skin ID
  (champion_id * 1000), and call clear_historic_entry() so the file
  reflects the user's last real choice.
@Kneju Kneju closed this May 13, 2026
@Kneju Kneju reopened this May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant