mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Moved load condition and simplify list selection
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user