1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 02:22:56 +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
{
if (!IsLoaded || allowBeatmapChange == value) return;
if (allowBeatmapChange == value) return;
allowBeatmapChange = value;
@ -66,8 +66,7 @@ namespace osu.Game.Overlays.Music
list.Filter(filter.Search.Text);
// 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
{
playlist.AllowBeatmapChange = value;
if(IsLoaded)
playlist.AllowBeatmapChange = value;
}
}