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:
parent
03c13620c8
commit
354f516779
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -61,7 +61,8 @@ namespace osu.Game.Overlays
|
||||
}
|
||||
set
|
||||
{
|
||||
playlist.AllowBeatmapChange = value;
|
||||
if(IsLoaded)
|
||||
playlist.AllowBeatmapChange = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user