mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 09:37:23 +08:00
Do not trigger Random if no Beatmaps are imported
This commit is contained in:
parent
9bb404b799
commit
5d30efc090
@ -177,6 +177,9 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
public void SelectNextRandom()
|
public void SelectNextRandom()
|
||||||
{
|
{
|
||||||
|
if (groups.Count == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
randomSelectedBeatmaps.Push(new KeyValuePair<BeatmapGroup, BeatmapPanel>(selectedGroup, selectedGroup.SelectedPanel));
|
randomSelectedBeatmaps.Push(new KeyValuePair<BeatmapGroup, BeatmapPanel>(selectedGroup, selectedGroup.SelectedPanel));
|
||||||
|
|
||||||
var visibleGroups = getVisibleGroups();
|
var visibleGroups = getVisibleGroups();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user