1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 08:55:35 +08:00

Moved load condition and simplify list selection

This commit is contained in:
MrTheMake 2017-06-20 15:19:59 +02:00
parent 03c13620c8
commit 354f516779
2 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ namespace osu.Game.Overlays.Music
} }
set set
{ {
if (!IsLoaded || allowBeatmapChange == value) return; if (allowBeatmapChange == value) return;
allowBeatmapChange = value; allowBeatmapChange = value;
@ -66,8 +66,7 @@ namespace osu.Game.Overlays.Music
list.Filter(filter.Search.Text); list.Filter(filter.Search.Text);
// Select the current beatmap // Select the current beatmap
if (beatmapBacking.Value != null) list.SelectedItem = beatmapBacking.Value?.BeatmapSetInfo;
list.SelectedItem = beatmapBacking.Value.BeatmapSetInfo;
} }
} }

View File

@ -61,7 +61,8 @@ namespace osu.Game.Overlays
} }
set set
{ {
playlist.AllowBeatmapChange = value; if(IsLoaded)
playlist.AllowBeatmapChange = value;
} }
} }