mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Reduce number of rqeuests to display beatmaps in profile
Comes at the cost of losing some information which should be loaded. This will be fixed at the osu-web end.
This commit is contained in:
@ -52,10 +52,7 @@ namespace osu.Game.Overlays.Profile.Sections.Beatmaps
|
|||||||
if (!s.OnlineBeatmapSetID.HasValue)
|
if (!s.OnlineBeatmapSetID.HasValue)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
var subReq = new GetBeatmapSetRequest(s.OnlineBeatmapSetID.Value);
|
var panel = new DirectGridPanel(s.ToBeatmapSet(Rulesets)) { Width = 400 };
|
||||||
subReq.Success += b =>
|
|
||||||
{
|
|
||||||
var panel = new DirectGridPanel(b.ToBeatmapSet(Rulesets)) { Width = 400 };
|
|
||||||
ItemsContainer.Add(panel);
|
ItemsContainer.Add(panel);
|
||||||
|
|
||||||
panel.PreviewPlaying.ValueChanged += newValue =>
|
panel.PreviewPlaying.ValueChanged += newValue =>
|
||||||
@ -67,9 +64,6 @@ namespace osu.Game.Overlays.Profile.Sections.Beatmaps
|
|||||||
playing = panel;
|
playing = panel;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
Api.Queue(subReq);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user