mirror of
https://github.com/ppy/osu.git
synced 2026-06-03 06:09:54 +08:00
Remove redundant refresh calls
This commit is contained in:
@@ -418,7 +418,6 @@ namespace osu.Game.Screens.SelectV2
|
||||
string[] tags = realm.Run(r =>
|
||||
{
|
||||
// need to refetch because `beatmap.Value.BeatmapInfo` is not going to have the latest tags
|
||||
r.Refresh();
|
||||
var refetchedBeatmap = r.Find<BeatmapInfo>(beatmap.Value.BeatmapInfo.ID);
|
||||
return refetchedBeatmap?.Metadata.UserTags.ToArray() ?? [];
|
||||
});
|
||||
|
||||
@@ -309,7 +309,6 @@ namespace osu.Game.Screens.SelectV2
|
||||
// which prevents working beatmap refetches caused by changes to the realm model of perceived low importance).
|
||||
var status = realm.Run(r =>
|
||||
{
|
||||
r.Refresh();
|
||||
var refetchedBeatmap = r.Find<BeatmapInfo>(working.Value.BeatmapInfo.ID);
|
||||
return refetchedBeatmap?.Status;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user