mirror of
https://github.com/ppy/osu.git
synced 2025-01-16 05:12:54 +08:00
Better exception for SearchableListFilterControl's generic type argument not being an enum
This commit is contained in:
parent
239472c451
commit
816caf86ea
@ -30,7 +30,7 @@ namespace osu.Game.Overlays.SearchableList
|
|||||||
protected SearchableListFilterControl()
|
protected SearchableListFilterControl()
|
||||||
{
|
{
|
||||||
if (!typeof(T).IsEnum)
|
if (!typeof(T).IsEnum)
|
||||||
throw new InvalidOperationException("BrowseFilterControl only supports enums as the generic type argument");
|
throw new InvalidOperationException("SearchableListFilterControl's sort tabs only support enums as the generic type argument");
|
||||||
|
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
AutoSizeAxes = Axes.Y;
|
AutoSizeAxes = Axes.Y;
|
||||||
|
Loading…
Reference in New Issue
Block a user