mirror of
https://github.com/ppy/osu
synced 2025-02-25 23:21:26 +00:00
Fix BeatmapLeaderboard
refreshing on unrelated changes to a beatmap
This commit is contained in:
parent
2a55c5e02e
commit
622ec53130
@ -191,6 +191,11 @@ namespace osu.Game.Screens.Select.Leaderboards
|
|||||||
if (cancellationToken.IsCancellationRequested)
|
if (cancellationToken.IsCancellationRequested)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// This subscription may fire from changes to linked beatmaps, which we don't care about.
|
||||||
|
// It's currently not possible for a score to be modified after insertion, so we can safely ignore callbacks with only modifications.
|
||||||
|
if (changes?.HasCollectionChanges() == false)
|
||||||
|
return;
|
||||||
|
|
||||||
var scores = sender.AsEnumerable();
|
var scores = sender.AsEnumerable();
|
||||||
|
|
||||||
if (filterMods && !mods.Value.Any())
|
if (filterMods && !mods.Value.Any())
|
||||||
|
Loading…
Reference in New Issue
Block a user