Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear previous LastLocalUserScore when returning to song select #30905

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

peppy
Copy link
Member

@peppy peppy commented Nov 28, 2024

This seems like the lowest friction way to fix #30885.

We could also only null this on application, but this feels worse because

  • It would require local handling (potentially complex) in BeatmapOffsetControl if we want to continue displaying the graph and button after clicking it.
  • It would make the session static very specific in usage and potentially make future usage not possible due to being nulled in only a very specific scenario.

One might argue that it would be nice to have this non-null until the next play, but if such a usage comes up I'd propose we rename this session static and add a new one with that purpose.

This seems like the lowest friction way of fixing
ppy#30885.

We could also only null this on application, but this feels worse
because

- It would require local handling (potentially complex) in
  `BeatmapOffsetControl` if we want to continue displaying the graph and
button after clicking it.
- It would make the session static very specific in usage and
  potentially make future usage not possible due to being nulled in only
a very specific scenario.

One might argue that it would be nice to have this non-null until the
next play, but if such a usage comes up I'd propose we rename this
session static and add a new one with that purpose.
Copy link
Contributor

@smoogipoo smoogipoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably okay, as long as tests pass

@smoogipoo smoogipoo merged commit 0777199 into ppy:master Nov 28, 2024
8 of 9 checks passed
@peppy peppy deleted the fix-multiple-offset-applications branch December 2, 2024 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Offset option "Calibrate using last play" can be used multiple times if the map is restarted before loading.
2 participants