mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Fix WorkingBeatmap being loaded twice when using MusicController at SongSelect
This commit is contained in:
@ -221,11 +221,16 @@ namespace osu.Game.Screens.Select
|
|||||||
{
|
{
|
||||||
Action performLoad = delegate
|
Action performLoad = delegate
|
||||||
{
|
{
|
||||||
bool preview = beatmap?.BeatmapSetInfoID != Beatmap.Value.BeatmapInfo.BeatmapSetInfoID;
|
// We may be arriving here due to another component changing the bindable Beatmap.
|
||||||
|
// In these cases, the other component has already loaded the beatmap, so we don't need to do so again.
|
||||||
|
if (!beatmap.Equals(Beatmap.Value.BeatmapInfo))
|
||||||
|
{
|
||||||
|
bool preview = beatmap?.BeatmapSetInfoID != Beatmap.Value.BeatmapInfo.BeatmapSetInfoID;
|
||||||
|
|
||||||
Beatmap.Value = database.GetWorkingBeatmap(beatmap, Beatmap);
|
Beatmap.Value = database.GetWorkingBeatmap(beatmap, Beatmap);
|
||||||
|
ensurePlayingSelected(preview);
|
||||||
|
}
|
||||||
|
|
||||||
ensurePlayingSelected(preview);
|
|
||||||
changeBackground(Beatmap.Value);
|
changeBackground(Beatmap.Value);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user