mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 09:27:18 +09:00
Add early return of carousel group has no items
This commit is contained in:
parent
2456a18bc1
commit
22ea9a8ab4
@ -114,6 +114,9 @@ namespace osu.Game.Screens.Select.Carousel
|
|||||||
/// <returns>An unfiltered item nearest to the last selected one or null if all items are filtered</returns>
|
/// <returns>An unfiltered item nearest to the last selected one or null if all items are filtered</returns>
|
||||||
protected virtual CarouselItem GetNextToSelect()
|
protected virtual CarouselItem GetNextToSelect()
|
||||||
{
|
{
|
||||||
|
if (Items.Count == 0)
|
||||||
|
return null;
|
||||||
|
|
||||||
int forwardsIndex = lastSelectedIndex;
|
int forwardsIndex = lastSelectedIndex;
|
||||||
bool hasForwards;
|
bool hasForwards;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user