Remove pending export operation if active score is changed

This commit is contained in:
Dean Herbert 2023-07-30 16:41:45 +09:00
parent 35ec55c1f6
commit 6d5b3617b3

View File

@ -83,6 +83,10 @@ namespace osu.Game.Screens.Ranking
Score.BindValueChanged(score =>
{
// An export may be pending from the last score.
// Reset this to meet user expectations (a new score which has just been switched to shouldn't export)
State.ValueChanged -= exportWhenReady;
downloadTracker?.RemoveAndDisposeImmediately();
if (score.NewValue != null)