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